Merge branch 'platal-0.9.17'
[platal.git] / classes / xnet.php
index ad8a0b7..9e5096b 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /***************************************************************************
- *  Copyright (C) 2003-2007 Polytechnique.org                              *
+ *  Copyright (C) 2003-2008 Polytechnique.org                              *
  *  http://opensource.polytechnique.org/                                   *
  *                                                                         *
  *  This program is free software; you can redistribute it and/or modify   *
@@ -57,6 +57,12 @@ class Xnet extends Platal
         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();
@@ -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'));
     }