From: hickert Date: Mon, 19 Mar 2007 11:37:50 +0000 (+0000) Subject: Made check for class method plInfo php4 compatible X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=1139e1b368b4d471d4bea99dab40630c0a5abff3;p=gosa.git Made check for class method plInfo php4 compatible git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5818 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/class_pluglist.inc b/include/class_pluglist.inc index f6267beb2..8a354af6a 100644 --- a/include/class_pluglist.inc +++ b/include/class_pluglist.inc @@ -41,11 +41,13 @@ class pluglist { /* Fill info part of pluglist */ $classes= get_declared_classes(); - foreach (get_declared_classes() as $cname){ - if (method_exists($cname, 'plInfo')){ - $this->info[$cname]= @call_user_func(array($cname, 'plInfo')); - } - } + + foreach ($classes as $cname){ + $cmethods = get_class_methods($cname); + if (in_array_ics('plInfo',$cmethods)){ + $this->info[$cname]= @call_user_func(array($cname, 'plInfo')); + } + } /* Provide field for 'all' */ $this->info['all']= array(); diff --git a/include/sieve/templates/element_size.tpl b/include/sieve/templates/element_size.tpl index def994dff..aedb7c39e 100644 --- a/include/sieve/templates/element_size.tpl +++ b/include/sieve/templates/element_size.tpl @@ -19,7 +19,6 @@ - diff --git a/include/sieve/templates/select_test_type.tpl b/include/sieve/templates/select_test_type.tpl index 39ab2f7ca..e08fea0e2 100644 --- a/include/sieve/templates/select_test_type.tpl +++ b/include/sieve/templates/select_test_type.tpl @@ -4,4 +4,11 @@ - + +

 

+
+
+ +   + +