Backport
authorx2003bruneau <x2003bruneau@839d8a87-29fc-0310-9880-83ba4fa771e5>
Fri, 6 Oct 2006 07:40:18 +0000 (07:40 +0000)
committerx2003bruneau <x2003bruneau@839d8a87-29fc-0310-9880-83ba4fa771e5>
Fri, 6 Oct 2006 07:40:18 +0000 (07:40 +0000)
git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@948 839d8a87-29fc-0310-9880-83ba4fa771e5

classes/platal.php
modules/xnetgrp.php

index 1a317f3..7bd94ff 100644 (file)
@@ -131,6 +131,7 @@ class Platal
             $this->path = 'index';
         }
 
+        $page->assign_by_ref('platal', $this);
         switch ($this->call_hook($page)) {
           case PL_FORBIDDEN:
             $this->__mods['core']->handler_403($page);
@@ -140,7 +141,6 @@ class Platal
             $this->__mods['core']->handler_404($page);
             break;
         }
-        $page->assign_by_ref('platal', $this);
         $page->run();
     }
 
index 85b4d07..c359913 100644 (file)
@@ -357,7 +357,7 @@ class XnetGrpModule extends PLModule
                                             $u, $globals->asso('id'));
                 $n   = $res->fetchOneCell();
                 if ($n) {
-                    $page->trig("$prenom $nom est déjà membre du groupe !");
+                    $page->kill("$prenom $nom est déjà membre du groupe !");
                     return;
                 }
                 elseif (Env::has('accept'))