X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fbanana%2Fhooks.inc.php;h=cd963045535512e7fb30250111dd01a93b211e4b;hb=fb813fb52d5ab65ca9a5b92b5cb9089523380d79;hp=6c4f19d82fca3e6ac916b55cc068dea032bd50ae;hpb=2db80ab6f7d054ec274c66f7ba983f49596b81cf;p=platal.git diff --git a/include/banana/hooks.inc.php b/include/banana/hooks.inc.php index 6c4f19d..cd96304 100644 --- a/include/banana/hooks.inc.php +++ b/include/banana/hooks.inc.php @@ -1,6 +1,6 @@ id()); if ($res->numRows()) { // User wants his xface to be showed, fallback to default handler @@ -214,7 +214,7 @@ function make_Organization() global $globals; $perms = S::v('perms'); $group = $globals->asso('nom'); - if (S::has_perms()) { + if (S::admin()) { return "Administrateur de Polytechnique.org"; } else if ($group && $perms->hasFlag('groupadmin')) { return "Animateur de $group"; @@ -319,7 +319,9 @@ class BananaHandler { } - public function process() + public function success() { } + + public function process(&$success) { return PlWizard::CURRENT_PAGE; } @@ -327,7 +329,7 @@ class BananaHandler function run_banana(&$page, $class, array $args) { - $user =& S::user(); + $user = S::user(); $banana = new $class($user, $args); $page->assign('banana', $banana->run()); $page->addCssInline($banana->css());