Code

Backport from trunk
[gosa.git] / gosa-plugins / fai / admin / fai / classSelect / class_classSelect.inc
index 3db10bc473d1b1f81115aa521547f24581b739a1..dbfe227568e7dc748a8df7c36271437087c6e53e 100644 (file)
@@ -52,19 +52,19 @@ class classSelect extends management
   static function filterProperties($row, $classes)
   {
     /* Create different picture for each object type */
-    $objTypes['FAIhook']            = "<img src='plugins/fai/images/fai_hook.png' title='"._("Hook bundle")."' alt=''>&nbsp;";
-    $objTypes['FAItemplate']        = "<img src='plugins/fai/images/fai_template.png' title='"._("Template bundle")."' alt=''>&nbsp;";
-    $objTypes['FAIscript']          = "<img src='plugins/fai/images/fai_script.png' title='"._("Script bundle")."' alt=''>&nbsp;";
-    $objTypes['FAIvariable']        = "<img src='plugins/fai/images/fai_variable.png' title='"._("Variable bundle")."' alt=''>&nbsp;";
-    $objTypes['FAIpackageList']     = "<img src='plugins/fai/images/fai_packages.png' title='"._("Package bundle")."' alt=''>&nbsp;";
-    $objTypes['FAIpartitionTable']  = "<img src='plugins/fai/images/fai_partitionTable.png' title='"._("Partition table")."' alt=''>&nbsp;";
+    $objTypes['FAIhook']            = image('plugins/fai/images/fai_hook.png');
+    $objTypes['FAItemplate']        = image('plugins/fai/images/fai_template.png');
+    $objTypes['FAIscript']          = image('plugins/fai/images/fai_script.png');
+    $objTypes['FAIvariable']        = image('plugins/fai/images/fai_variable.png');
+    $objTypes['FAIpackageList']     = image('plugins/fai/images/fai_packages.png');
+    $objTypes['FAIpartitionTable']  = image('plugins/fai/images/fai_partitionTable.png');
 
     $str = "";
     foreach($objTypes as $class => $img){
-      if(in_array($class, $classes)){
+      if(in_array_strict($class, $classes)){
         $str .= $img;
       }else{
-        $str .= "<img src='images/empty.png'>&nbsp;";
+        $str .= image('images/empty.png');
       }
     }
     return($str);