summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: af68c0e)
raw | patch | inline | side by side (parent: af68c0e)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 8 Aug 2005 09:50:34 +0000 (09:50 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 8 Aug 2005 09:50:34 +0000 (09:50 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1075 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/gofon/macro/class_gofonMacroParameters.inc | patch | blob | history |
diff --git a/plugins/gofon/macro/class_gofonMacroParameters.inc b/plugins/gofon/macro/class_gofonMacroParameters.inc
index dd2c2be08cf8646f8af5eda5ff6cb82228a642c2..928f3227b627a537cb93d2513103ecef8a95f71e 100755 (executable)
/*! CLI vars */
var $cli_parameters= array("eins" => "Eins ist toll", "zwei" => "Zwei ist noch besser");
+ /* Parameter Count*/
+ var $para_count = 0 ;
/*! macro base */
var $base= "";
$tmp2[$num]['var'] = "var".$num;
}
+
/* Assign this array */
$this->goFonMacroParameter = $tmp2;
+
+ $this->para_count = count ($tmp2);
+
}
//! Perform Parameter check
$vars = "";
$tmp = array();
$number = 0;
-
+
$content = $_SESSION['macroManagment']->macrotabs->by_object['macro']->goFonMacroContent;
if(strstr($content,"ARG")){
$this->attrs['goFonMacroParameter'][]=$key."!".$fonpara['name']."!".$fonpara['type']."!".$fonpara['default'];
}
+ if($this->para_count != count($this->attrs['goFonMacroParameter'])){
+ print_red(_("Parameter count of the macro changed, you must update each user which are using this macro '%s'."),$this->dn);
+ }
+
unset($this->attrs['base']);
/* Write back to ldap */