X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fbanana%2Fhooks.inc.php;h=6f9e8f0e4869b781e2516617ce33044a9d995c98;hb=3af5a31e4e6d5655fa43b218dc3c8ba15c53592e;hp=5259177d4923d726d60c86568db3e16a0a2f1fcd;hpb=d75f57dac58ca37ea8cd1b7849b0b879ad65c76f;p=platal.git diff --git a/include/banana/hooks.inc.php b/include/banana/hooks.inc.php index 5259177..6f9e8f0 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"; @@ -290,7 +290,7 @@ class PlatalBananaPage extends BananaPage { $tpl = parent::prepare(); global $wiz; - $wiz = new PlWizard('Banana', 'core/plwizard.tpl', true, false); + $wiz = new PlWizard('Banana', PlPage::getCoreTpl('plwizard.tpl'), true, false); foreach ($this->pages as $name=>&$mpage) { $wiz->addPage($this->handler, $mpage['text'], $name); }