X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=classes%2FXnet.php;h=3d5dbb19d0e2735b56435fe331546691ba1f0d04;hb=d1ebc57a6035c4b43153dd85a34cfce19bc33026;hp=9435a9d640dd5123625b6fd60dd631b2c52080a0;hpb=04002fa130a79c9f2b4c052a3b8432b3ff0ee5da;p=platal.git diff --git a/classes/Xnet.php b/classes/Xnet.php index 9435a9d..3d5dbb1 100644 --- a/classes/Xnet.php +++ b/classes/Xnet.php @@ -32,10 +32,10 @@ class Xnet extends Platal if ($globals->asso()) { if ($p = strpos($this->path, '/')) { $this->ns = substr($this->path, 0, $p).'/'; - $this->path = 'grp'.substr($this->path, $p); + $this->path = '%grp'.substr($this->path, $p); } else { $this->ns = $this->path.'/'; - $this->path = 'grp'; + $this->path = '%grp'; } } } @@ -44,7 +44,8 @@ class Xnet extends Platal { $ans = parent::find_hook(); if ($ans && $this->ns) { - $this->path = $this->ns . substr($this->path, 4); + $this->path = $this->ns . substr($this->path, 5); + $this->argv[0] = $this->ns . substr($this->argv[0], 5); } return $ans; }