From 65f684240ad60580ebab6b0b49c16d4194299f4d Mon Sep 17 00:00:00 2001 From: Florent Bruneau Date: Tue, 29 Apr 2008 18:47:57 +0200 Subject: [PATCH] Fix pl_self() on X.net (no more %grp in the URLs). Signed-off-by: Florent Bruneau --- classes/xnet.php | 6 ++++++ 1 file changed, 6 insertions(+) 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(); -- 2.1.4