Code

Updated table summary
[gosa.git] / gosa-plugins / mail / personal / mail / sieve / class_sieveManagement.inc
index 637c27718e7a3dce413fb424a4b028dc1221a511..650c95a2d332c8a0d11e91460c907836ed9043f3 100644 (file)
@@ -143,7 +143,8 @@ class sieveManagement extends plugin
           $cfg["sieve_port"], 
           $this->parent->$uattrib, 
           $cfg["password"], 
-          $cfg["admin"]);
+          $cfg["admin"],
+          $cfg["sieve_option"]);
 
       /* Try to login */
       if (!@$this->sieve_handle->sieve_login()){
@@ -163,6 +164,7 @@ class sieveManagement extends plugin
    */
   function execute()
   {
+    plugin::execute();
     /***************
      * Create a new Script 
      ***************/
@@ -652,7 +654,7 @@ class sieveManagement extends plugin
                        title='"._("Activate script")."'>";
       }
 
-      $field6 = array("string" => $activate."<input type='image' name='editscript_".$key."' src='images/edit.png'
+      $field6 = array("string" => $activate."<input type='image' name='editscript_".$key."' src='images/lists/edit.png'
                         title='"._("Edit script")."'>".$del,
                       "attach" => "style='border-right:0px; width:70px;'");
       $List->AddEntry(array($field1,$field2,$field3,$field4,$field6)); 
@@ -694,8 +696,7 @@ class sieveManagement extends plugin
       trigger_error("Can't add new element, given id is not numeric.");
       return(FALSE);
     }
-    $tmp = get_declared_classes();  
-    if(!in_array($type,$tmp)){
+    if(!class_available($type)){
       if(!empty($type)){
         trigger_error("Can't add new element, given \$class=".$class." does not exists.");
       }