summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5be2197)
raw | patch | inline | side by side (parent: 5be2197)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 22 Jun 2005 09:15:35 +0000 (09:15 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 22 Jun 2005 09:15:35 +0000 (09:15 +0000) |
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 67f8bce0619930c125b59a7a399f2d4233a7711f..d8e5d69929f9042559f9adbda91d2a6af3057590 100755 (executable)
return(array($str));
}
}
+ foreach($this->goFonMacroParameter as $key=>$val){
+ switch($val['type']){
+ case 'bool' : $possible = array("","0","1","true","false");
+ if(!in_array($val['default'],$possible)) {
+ $message[] = sprintf(_("The parameter %s has incorrect value for type bool."),$val['name']);
+ };break;
+ case 'string' :
+ case 'combo' : if(strstr($val['default'],"!")){
+ $message[] = sprintf(_("The parameter %s contains invalid char. '!' is used as delimiter"),$val['name']);
+ };break;
+ default : ;
+
+ }
+ }
return $message;
}