X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=banana%2Fbanana.inc.php.in;h=c564a0c3d042a43631f3c9a8e761c55b509ecf93;hb=2f0aa8ce6cd57d21fe870cd97ec564fe6241e80a;hp=d3e983ea7667cfff46b3ddddd5d4b8ff878d6aa3;hpb=0e25d15dfb73aa6769f8b0d136974f36f1b3619f;p=banana.git diff --git a/banana/banana.inc.php.in b/banana/banana.inc.php.in index d3e983e..c564a0c 100644 --- a/banana/banana.inc.php.in +++ b/banana/banana.inc.php.in @@ -145,7 +145,7 @@ class Banana // Look for the action to execute if (is_null(Banana::$group)) { - if (isset($this->params['subscribe'])) { + if (isset($this->params['action']) && $this->params['action'] == 'subscribe') { Banana::$action = Banana::ACTION_BOX_SUBS; } else { Banana::$action = Banana::ACTION_BOX_LIST; @@ -173,27 +173,6 @@ class Banana } } - /** Register an action to show on banana page - * @param action_code HTML code of the action - * @param pages ARRAY pages where to show the action (null == every pages) - * @return true if success - */ - public function registerAction($action_code, array $pages = null) - { - return Banana::$page->registerAction($action_code, $pages); - } - - /** Register a new page - * @param name Name of the page - * @param text Text for the tab of the page - * @param template Template path for the page if null, the page is not handled by banana - * @return true if success - */ - public function registerPage($name, $text, $template = null) - { - return Banana::$page->registerPage($name, $text, $template); - } - /** Run Banana * This function need user profile to be initialised */