From: Florent Bruneau Date: Tue, 29 Apr 2008 16:47:57 +0000 (+0200) Subject: Fix pl_self() on X.net (no more %grp in the URLs). X-Git-Tag: core/1.0.0~223 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=65f684240ad60580ebab6b0b49c16d4194299f4d;p=platal.git Fix pl_self() on X.net (no more %grp in the URLs). Signed-off-by: Florent Bruneau --- diff --git a/classes/xnet.php b/classes/xnet.php index bc30b17..a5a739a 100644 --- a/classes/xnet.php +++ b/classes/xnet.php @@ -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();