From: x2003bruneau Date: Mon, 10 Jul 2006 09:29:19 +0000 (+0000) Subject: Add height parameter to makeImg hook X-Git-Tag: xorg/0.9.11~479 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=cce828e536471e7dce67d642d150e2ad1c31426b;p=platal.git Add height parameter to makeImg hook git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@417 839d8a87-29fc-0310-9880-83ba4fa771e5 --- diff --git a/include/banana.inc.php b/include/banana.inc.php index 7ffc87f..304d13b 100644 --- a/include/banana.inc.php +++ b/include/banana.inc.php @@ -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 '' . $alt . ''; + return '' . $alt . ''; } class PlatalBanana extends Banana