Code

Cleaned up last commit
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 29 Apr 2010 15:07:01 +0000 (15:07 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 29 Apr 2010 15:07:01 +0000 (15:07 +0000)
-Mark some rows in system listing e.g. for locked systems

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17974 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/systems/admin/systems/class_systemManagement.inc

index 94f8a7bc48479dd711d60a945beee6e430d9bc1a..d9b59cf6613075d01291be5cc10fc7ad1cdb5777 100644 (file)
@@ -1365,29 +1365,11 @@ class systemManagement extends management
 
   static function filterSystemDescription($row,$dn,$pid,$description=array())
   {
-      $result= "&nbsp;";
-
-      $row= func_get_arg(0);
       $dn= LDAP::fix(func_get_arg(1));
-      $params= array(func_get_arg(2));
-
-      // Collect sprintf params
-      for ($i = 3;$i < func_num_args();$i++) {
-          $val= func_get_arg($i);
-          if (is_array($val)){
-              $params[]= $val[0];
-              continue;
-          }
-          $params[]= $val;
-      }
-
-      $result= "&nbsp;";
-      $trans= call_user_func_array("sprintf", $params);
-      if ($trans != "") {
-          return("<a href='?plug=".$_GET['plug']."&amp;PID=$pid&amp;act=listing_edit_$row' title='$dn'>$trans</a>");
-      }
-
-      return $result;
+      $desc = isset($description[0])?$description[0]:"&nbsp;";
+      $rc = "<rowClass:entry-locked/>";
+      $rc = "";
+      return("<a href='?plug=".$_GET['plug']."&amp;PID={$pid}&amp;act=listing_edit_{$row}' title='{$dn}'>{$desc}</a>{$rc}");
   }
 
   static function systemRelease($a,$b,$c,$objectclasses= null,$class= null)