From cce828e536471e7dce67d642d150e2ad1c31426b Mon Sep 17 00:00:00 2001 From: x2003bruneau Date: Mon, 10 Jul 2006 09:29:19 +0000 Subject: [PATCH] Add height parameter to makeImg hook git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@417 839d8a87-29fc-0310-9880-83ba4fa771e5 --- include/banana.inc.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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 -- 2.1.4