Fix link to user in headers
authorx2003bruneau <x2003bruneau@839d8a87-29fc-0310-9880-83ba4fa771e5>
Sun, 9 Jul 2006 16:24:06 +0000 (16:24 +0000)
committerx2003bruneau <x2003bruneau@839d8a87-29fc-0310-9880-83ba4fa771e5>
Sun, 9 Jul 2006 16:24:06 +0000 (16:24 +0000)
git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@407 839d8a87-29fc-0310-9880-83ba4fa771e5

include/banana.inc.php

index c48d173..657f235 100644 (file)
 require_once('banana/banana.inc.php');
 
 function hook_formatDisplayHeader($_header,$_text) {
+    global $globals;
     if ($_header == 'x-org-id') {
-        return "$_text [<a href=\"../fiche.php?user=$_text\" class='popup2'>fiche</a>]";
+               return $_text . ' [<a href="' . $globals->baseurl . '/fiche.php?user=' 
+                        . $_text . '" class="popup2">fiche</a>]';
     }
 }