Group base URL does not anymore need the trailing slash.
authorx2003bruneau <x2003bruneau@839d8a87-29fc-0310-9880-83ba4fa771e5>
Thu, 23 Nov 2006 00:27:48 +0000 (00:27 +0000)
committerx2003bruneau <x2003bruneau@839d8a87-29fc-0310-9880-83ba4fa771e5>
Thu, 23 Nov 2006 00:27:48 +0000 (00:27 +0000)
Fix menu link to keep authentification

do not forget to run make on your copy of platal

git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@1144 839d8a87-29fc-0310-9880-83ba4fa771e5

include/globals.inc.php.in
include/xnet/page.inc.php

index 8673f7e..a99a6b4 100644 (file)
@@ -102,7 +102,9 @@ class PlatalGlobals
 
         if (is_null($aid)) {
             $gp = Get::v('n');
-            $gp = substr($gp, 0, strpos($gp, '/'));
+            if ($p = strpos($gp, '/')) {
+                $gp = substr($gp, 0, $p);
+            }
 
             if ($gp) {
                 $res = XDB::query('SELECT  a.*, d.nom AS domnom
index d7deaa3..d716ee3 100644 (file)
@@ -75,7 +75,7 @@ class XnetPage extends PlatalPage
         if (S::logged() && $globals->asso()) {
             $sub = array();
             $dim = $globals->asso('diminutif');
-            $sub['prĂ©sentation'] = "$dim/";
+            $sub['prĂ©sentation'] = "login/$dim/";
             if (may_update() || (is_member()  && $globals->asso('pub') == 'public')) {
                 $sub['annuaire du groupe'] = "$dim/annuaire";
                 $sub['trombinoscope'] = "$dim/trombi";