Fix pl_self() on X.net (no more %grp in the URLs).
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Tue, 29 Apr 2008 16:47:57 +0000 (18:47 +0200)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Tue, 29 Apr 2008 16:47:57 +0000 (18:47 +0200)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
classes/xnet.php

index bc30b17..a5a739a 100644 (file)
@@ -57,6 +57,12 @@ class Xnet extends Platal
         return null;
     }
 
+    public function pl_self($n = null)
+    {
+        global $globals;
+        return str_replace('%grp', $globals->asso('diminutif'), parent::pl_self($n));
+    }
+
     protected function find_hook()
     {
         $ans = parent::find_hook();