In order to use last svn of banana
authorx2003bruneau <x2003bruneau@839d8a87-29fc-0310-9880-83ba4fa771e5>
Thu, 13 Jul 2006 15:40:00 +0000 (15:40 +0000)
committerx2003bruneau <x2003bruneau@839d8a87-29fc-0310-9880-83ba4fa771e5>
Thu, 13 Jul 2006 15:40:00 +0000 (15:40 +0000)
git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@463 839d8a87-29fc-0310-9880-83ba4fa771e5

include/banana.inc.php
modules/banana.php
templates/banana/index.tpl

index 4f009f8..5ae5210 100644 (file)
@@ -37,6 +37,12 @@ function hook_checkcancel($_headers) {
     return ($_headers['x-org-id'] == Session::get('forlife') or has_perms());
 }
 
+function hook_shortcuts()
+{
+    global $globals;
+    return '<a href="' . $globals->baseurl . '/banana/profile">Préférences</a>';
+}
+
 function hook_makeLink($params) {
     global $globals;
     $base = $globals->baseurl . '/banana'; 
@@ -75,7 +81,7 @@ function hook_makeLink($params) {
 function hook_makeImg($img, $alt, $height, $width)
 {
     global $globals;
-    $url = $globals->baseurl . '/images/banana/' . $img . '.gif';
+    $url = $globals->baseurl . '/images/banana/' . $img;
 
     if (!is_null($width)) {
         $width = ' width="' . $width . '"';
index f45d8b2..578f37f 100644 (file)
@@ -43,7 +43,10 @@ class BananaModule extends PLModule
         if (!is_null($action)) {
             if ($action == 'new') {
                 $get['action'] = 'new';
-            } elseif (($action == 'reply' || $action == 'cancel') && !is_null($artid)) {
+            } elseif ($action == 'reply' && !is_null($artid)) {
+                $get['action'] = 'new';
+                $get['artid']  = $artid;
+            } elseif ($action == 'cancel' && !is_null($artid)) {
                 $get['action'] = $action;
                 $get['artid']  = $artid;
             } elseif ($action == 'from' && !is_null($artid)) {
index 27c8385..dd42b7b 100644 (file)
 {*                                                                        *}
 {**************************************************************************}
 
-<h1>Options</h1>
-
 {if !$banana->profile.autoup}
 [<a href='javascript:dynpost("{rel}/{$platal->path}", {ldelim}"updateall": 1{rdelim})'>Mettre à jour</a>]
 {/if}
-[<a href="{rel}/banana/profile">Profil</a>]
 
 <br />