Code

Removed image to html function
[gosa.git] / include / class_ObjectListViewport.inc
index 355e3c0af5e5ebaffd9b3e67bfc58543bdc7d0c4..4bf3f5bc89ef52c94cd63fda5580df9f84bc26cb 100644 (file)
@@ -96,12 +96,6 @@ class ObjectListViewport extends GOsaGuiElement {
   }
 
 
-  /* FIXME: replace this -> not our task */
-  private function getEntryIcon($entry,$alt = ""){
-    return("<img src='images/".$entry['_icon']."' alt='".$alt."' class='center'>");
-  }
-
-
        /*! \brief Renders entries from the ObjectList iterator into a string
            Gets the entry descriptions from the ObjectList object and renders them.
       \return HTML rendered list entries
@@ -116,12 +110,7 @@ class ObjectListViewport extends GOsaGuiElement {
       if (!isset($entry[$attribute])){
         throw new ObjectListViewportException(sprintf(_("Can't locate attribute '%s' to replace in entry!"), $attribute));
       } else {
-
-        if(preg_match("/_icon/i",$attribute)){
-          $buffer= preg_replace('/\{'.$attribute.'\}/', $this->getEntryIcon($entry),$buffer); 
-        }else{
-          $buffer= preg_replace('/\{'.$attribute.'\}/', $entry[$attribute],$buffer);
-        }
+        $buffer= preg_replace('/\{'.$attribute.'\}/', $entry[$attribute],$buffer);
       }
     }