Code

Updated plugin creation && locking for all main.incs
[gosa.git] / gosa-plugins / goto / admin / devices / class_divListDevices.inc
index 12685dbb732b9b8c3d8fbc652673f28f863df70a..c4c11b25a28275fb88e770c132e5b2340d8333c0 100644 (file)
@@ -71,7 +71,7 @@ class divListDevices extends MultiSelectWindow
 
     /* Get acls */
     $ui       = get_userinfo();
-    $acl      = $ui->get_permissions("cn=dummy,".get_ou('deviceou').$this->selectedBase,"devices/deviceGeneric");
+    $acl      = $ui->get_permissions($this->selectedBase,"devices/deviceGeneric");
     $acl_all  = $ui->has_complete_category_acls($this->selectedBase,"devices") ;
 
 
@@ -90,7 +90,7 @@ class divListDevices extends MultiSelectWindow
     if(preg_match("/c/",$acl)) {
       $s .= "..|<img src='images/lists/new.png' alt='' border='0' class='center'>".
         "&nbsp;"._("Create")."|\n";
-      $s.= "...|<input class='center' type='image' src='images/list_new_device.png' alt=''>".
+      $s.= "...|<input class='center' type='image' src='plugins/goto/images/list_new_device.png' alt=''>".
         "&nbsp;"._("Device")."|device_new|\n";
       $s.= "..|---|\n";
     }
@@ -165,7 +165,7 @@ class divListDevices extends MultiSelectWindow
         $actions.= "<img src='images/empty.png' alt='&nbsp;' class='center'>";
       }
 
-      $title = "title='".preg_replace('/ /', '&nbsp;', @LDAP::fix($val['dn']))."'";
+      $title = "title='".preg_replace('/ /', '&nbsp;', LDAP::fix($val['dn']))."'";
 
       if(!isset($val['description'][0])){
         $desc = "";