X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=classes%2Fxnet.php;h=9e5096b0a96f637f7a515df3657b9e574f215db6;hb=a1ecc1fd22604e3dbb71c0b197af22e2f58cfa8a;hp=f3da66f9c24e49675bfaf79b6fcc869255a137ab;hpb=862a62fb38d4d1ba1b5b70a2fd2d57c5081b8627;p=platal.git diff --git a/classes/xnet.php b/classes/xnet.php index f3da66f..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() { $ans = parent::find_hook(); + $this->https = false; if ($ans && $this->ns) { $this->path = $this->ns . substr($this->path, 5); $this->argv[0] = $this->ns . substr($this->argv[0], 5); @@ -67,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')); }