X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=classes%2Fxnet.php;h=9983abade82119310607530d31dfc3e5e9cdc6d2;hb=a959b199b8f4790bf311c4e9c4b96b4ffb494eeb;hp=f3da66f9c24e49675bfaf79b6fcc869255a137ab;hpb=862a62fb38d4d1ba1b5b70a2fd2d57c5081b8627;p=platal.git diff --git a/classes/xnet.php b/classes/xnet.php index f3da66f..9983aba 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')); }