- if (!is_null($action)) {
- if ($action == 'new') {
- $get['action'] = 'new';
- } elseif ($action == 'reply' && !is_null($artid)) {
- $get['action'] = 'new';
- $get['artid'] = $artid;
- } elseif ($action == 'cancel' && !is_null($artid)) {
- $get['action'] = $action;
- $get['artid'] = $artid;
- } elseif ($action == 'from' && !is_null($artid)) {
- $get['first'] = $artid;
- } elseif ($action == 'read' && !is_null($artid)) {
- $get['artid'] = $artid;
- $get['part'] = @$_GET['part'];
- } elseif ($action == 'source' && !is_null($artid)) {
- $get['artid'] = $artid;
- $get['part'] = 'source';
- } elseif ($action == 'xface' && !is_null($artid)) {
- $get['artid'] = $artid;
- $get['part'] = 'xface';
- }
- }
- return BananaModule::run_banana($page, $get);
+ require_once 'banana/forum.inc.php';
+ get_banana_params($get, $group, $action, $artid);
+ run_banana($page, 'ForumsBanana', $get);