Code

Made check for class method plInfo php4 compatible
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 19 Mar 2007 11:37:50 +0000 (11:37 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 19 Mar 2007 11:37:50 +0000 (11:37 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5818 594d385d-05f5-0310-b6e9-bd551577e9d8

include/class_pluglist.inc
include/sieve/templates/element_size.tpl
include/sieve/templates/select_test_type.tpl

index f6267beb2fdf5cce01e29f6cb9de856a5a4b4343..8a354af6a81024f6c8abdec8c96bb8eb43ffac10 100644 (file)
@@ -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();
index def994dff2b4cd3bdbba0924fa09c7ccbabb4b1c..aedb7c39e95e253cb22e14a30b2bae82ea3a6d05 100644 (file)
@@ -19,7 +19,6 @@
                        <select name='Value_Unit_{$ID}' title='{t}Select value unit{/t}'>
                                {html_options options=$Units selected=$Value_Unit}
                        </select>
-                       <input type='submit'>
                </td>
        </tr>
 </table>
index 39ab2f7cac75a31d8096d0d33f29df3d2cbe777a..e08fea0e21ddea0e9b33bc75e49c0752296fc8b6 100644 (file)
@@ -4,4 +4,11 @@
 <select name='test_type_to_add_{$ID}'>
        {html_options options=$test_types_to_add}
 </select>
-<input type='submit' name='add_type'>
+
+<p class='seperator'>&nbsp;</p>
+<br>
+<div class='seperator' style='text-align:right; width:100%;'>
+       <input type='submit' name='does_nothing' value='{t}Abort{/t}'>
+       &nbsp;
+       <input type='submit' name='add_type' value='{t}Next{/t}'>
+</div>