Code

Updated image function for smarty.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 2 Mar 2010 12:12:44 +0000 (12:12 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 2 Mar 2010 12:12:44 +0000 (12:12 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15841 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/smarty/plugins/function.image.php

index a3c7ffc12d4269151881ae2b66de63e5364209db..c74753d48f74c7b57277d43939717184aec5e33f 100644 (file)
@@ -6,7 +6,9 @@ function smarty_function_image($params, &$smarty)
   $label = (isset($params['label']))? $params['label'] :"";
   $action = (isset($params['action']))? $params['action'] :"";
   $title = (isset($params['title']))? $params['title'] :"";
-  echo image($path,$label,$action,$title = "");
+  $align = (isset($params['align']))? $params['align'] :"";
+  //print_a(array($path,$label,$action,$title,$align));
+  echo image($path,$label,$action,$title,$align);
 }
   
 ?>