X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fbanana%2Fhooks.inc.php;h=987de1369c2ad4629402d65a138c17bfb15c7a67;hb=04334c61ffd1e63616503bf52e90174adaa3cc86;hp=ef22186586fcb51240709ed9f322122b3b9e3aac;hpb=b5163f5283aabcf6a68cb12c6ad81334e4a52b59;p=platal.git diff --git a/include/banana/hooks.inc.php b/include/banana/hooks.inc.php index ef22186..987de13 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(); } @@ -284,13 +293,9 @@ class PlatalBananaPage extends BananaPage global $wiz, $page; $wiz = new PlWizard('Banana', 'core/plwizard.tpl', true, false); foreach ($this->pages as $name=>&$mpage) { - if ($text == 'profile') { - $wiz->addPage('BananaProfile', $mpage['text'], $name); - } else { - $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; } } @@ -306,7 +311,7 @@ class BananaHandler return 'banana/index.tpl'; } - public function prepare(PlatalPage &$page, $id) + public function prepare(PlPage &$page, $id) { }