MySQL structure for surveys
[platal.git] / include / banana / hooks.inc.php
index fe000d5..68a51f4 100644 (file)
@@ -113,7 +113,8 @@ function hook_platalMessageLink($params)
 
 function hook_makeImg($img, $alt, $height, $width)
 {
-    $url = 'images/banana/' . $img;
+    global $globals;
+    $url = $globals->baseurl . '/images/banana/' . $img;
 
     if (!is_null($width)) {
         $width = ' width="' . $width . '"';
@@ -202,7 +203,7 @@ function get_banana_params(array &$get, $group = null, $action = null, $artid =
 
 function run_banana(&$page, $class, array $args)
 {
-    $banana = new $class($args);
+    $banana = new $class(S::v('forlife'), $args);
     $page->assign('banana', $banana->run());
     $page->addCssInline($banana->css());
     $page->addCssLink('banana.css');