X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;ds=sidebyside;f=classes%2Fxnet.php;h=4d0437f9e4141d1d502bc9d006321a8644060175;hb=c3b581dc531c40960509e3115d8c61ebd5897ee3;hp=58d1375acd23e10e110042ef252312a8b418b2f1;hpb=8fc4efa394721853bca6ee0e4f2028f33ed0867d;p=platal.git diff --git a/classes/xnet.php b/classes/xnet.php index 58d1375..4d0437f 100644 --- a/classes/xnet.php +++ b/classes/xnet.php @@ -1,6 +1,6 @@ asso()) { @@ -53,8 +53,14 @@ class Xnet extends Platal $link = str_replace('%grp', $globals->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')); }