Add height parameter to makeImg hook
authorx2003bruneau <x2003bruneau@839d8a87-29fc-0310-9880-83ba4fa771e5>
Mon, 10 Jul 2006 09:29:19 +0000 (09:29 +0000)
committerx2003bruneau <x2003bruneau@839d8a87-29fc-0310-9880-83ba4fa771e5>
Mon, 10 Jul 2006 09:29:19 +0000 (09:29 +0000)
git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@417 839d8a87-29fc-0310-9880-83ba4fa771e5

include/banana.inc.php

index 7ffc87f..304d13b 100644 (file)
@@ -71,7 +71,7 @@ function hook_makeLink($params) {
        return $base;
 }
 
-function hook_makeImg($img, $alt, $width)
+function hook_makeImg($img, $alt, $height, $width)
 {
     global $globals;
     $url = $globals->baseurl . '/images/banana/' . $img . '.gif';
@@ -79,8 +79,11 @@ function hook_makeImg($img, $alt, $width)
     if (!is_null($width)) {
         $width = ' width="' . $width . '"';
     }
+    if (!is_null($height)) {
+        $height = ' height="' . $height . '"';
+    }
     
-    return '<img src="' . $url . '"' . $width . ' alt="' . $alt . '" />';
+    return '<img src="' . $url . '"' . $height . $width . ' alt="' . $alt . '" />';
 }
 
 class PlatalBanana extends Banana