X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fbanana%2Fhooks.inc.php;h=f0a23620e65e071e3fa687cbcb421de440c1d82e;hb=d0327f6de73e81c4bcc656471ca4161e4f1e1e1b;hp=05d43ccca2582cabde0ad12e083751d09f555ca4;hpb=b8458bd177844d3723acfd334dd30396c3845700;p=platal.git diff --git a/include/banana/hooks.inc.php b/include/banana/hooks.inc.php index 05d43cc..f0a2362 100644 --- a/include/banana/hooks.inc.php +++ b/include/banana/hooks.inc.php @@ -1,6 +1,6 @@ handler = 'BananaHandler'; + $this->base = $platal->pl_self(0); parent::__construct(); } @@ -267,9 +293,9 @@ class PlatalBananaPage extends BananaPage global $wiz, $page; $wiz = new PlWizard('Banana', 'core/plwizard.tpl', true, false); foreach ($this->pages as $name=>&$mpage) { - $wiz->addPage('BananaHandler', $mpage['text'], $name); + $wiz->addPage($this->handler, $mpage['text'], $name); } - $wiz->apply($page, 'banana', $this->page); + $wiz->apply($page, $this->base, $this->page); return $tpl; } }