X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=classes%2Fxnet.php;h=b0bfe8b20b2e89f78682392298f98078e28dccb2;hb=8e72025345ea4c1e7cedb5c0a68a6d474aca298a;hp=88c600c9a123fde9860b0ff8dde96c5da9e4ad6e;hpb=2b1ee50b0196216dbe4f37e3b039469d6003ca23;p=platal.git diff --git a/classes/xnet.php b/classes/xnet.php index 88c600c..b0bfe8b 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; } - protected function force_login(&$page) + public function force_login(PlPage &$page) { http_redirect(S::v('loginX')); }