X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=classes%2Fxnet.php;h=9e5096b0a96f637f7a515df3657b9e574f215db6;hb=55546c0db778c2d8f9d7debd30117931dc39ff16;hp=58d1375acd23e10e110042ef252312a8b418b2f1;hpb=8fc4efa394721853bca6ee0e4f2028f33ed0867d;p=platal.git diff --git a/classes/xnet.php b/classes/xnet.php index 58d1375..9e5096b 100644 --- a/classes/xnet.php +++ b/classes/xnet.php @@ -1,6 +1,6 @@ asso('diminutif'), parent::near_hook()); if ($link != $this->path) { return $link; - } - return null; + } + 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() @@ -68,7 +74,7 @@ class Xnet extends Platal return $ans; } - public function force_login(&$page) + public function force_login(PlPage &$page) { http_redirect(S::v('loginX')); }