X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;ds=sidebyside;f=include%2Fbanana%2Fhooks.inc.php;h=f5f608ae3edb495eae1348a80fc4d7d63b561c9d;hb=eb5632361d837d1d4f813d4f77e52d6702a0d523;hp=69c5c37a63fade4dc730f369057f4cc39d03abff;hpb=0c8cd507ad27b70c20e9f056b77fc286ee88e04f;p=platal.git diff --git a/include/banana/hooks.inc.php b/include/banana/hooks.inc.php index 69c5c37..f5f608a 100644 --- a/include/banana/hooks.inc.php +++ b/include/banana/hooks.inc.php @@ -1,6 +1,6 @@ asso('nom'); - if (S::has_perms()) { + if (S::admin()) { return "Administrateur de Polytechnique.org"; } else if ($group && $perms->hasFlag('groupadmin')) { return "Animateur de $group"; @@ -314,7 +314,9 @@ class BananaHandler { } - public function process() + public function success() { } + + public function process(&$success) { return PlWizard::CURRENT_PAGE; }