diff options
author | Dries Buytaert <dries@buytaert.net> | 2004-11-06 11:54:09 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2004-11-06 11:54:09 +0000 |
commit | 1821eb13e6e51d32804a9b343142c28e676044c0 (patch) | |
tree | d5665ca9c4f00545fa2db7dff3cc70fba6d380cd /modules/forum | |
parent | bb3df8a1a98c4f5aaf6a90bec25d22fac14e7d44 (diff) | |
download | brdo-1821eb13e6e51d32804a9b343142c28e676044c0.tar.gz brdo-1821eb13e6e51d32804a9b343142c28e676044c0.tar.bz2 |
- Removed some dead code.
Diffstat (limited to 'modules/forum')
-rw-r--r-- | modules/forum/forum.module | 25 |
1 files changed, 9 insertions, 16 deletions
diff --git a/modules/forum/forum.module b/modules/forum/forum.module index e116cb34c..982845b50 100644 --- a/modules/forum/forum.module +++ b/modules/forum/forum.module @@ -467,27 +467,20 @@ function _forum_new($tid) { /** * Menu callback; prints a forum listing. */ -function forum_page($tid = 0, $display = 'all') { +function forum_page($tid = 0) { global $user; if (module_exist('taxonomy')) { - if ($display == 'new') { - if ($nid = _forum_new($tid)) { - drupal_goto("node/$nid"); - } - } - else { - $forum_per_page = variable_get('forum_per_page', 25); - $sortby = variable_get('forum_order', 1); + $forum_per_page = variable_get('forum_per_page', 25); + $sortby = variable_get('forum_order', 1); - $forums = forum_get_forums($tid); - $parents = taxonomy_get_parents_all($tid); - if ($tid && !in_array($tid, variable_get('forum_containers', array()))) { - $topics = forum_get_topics($tid, $sortby, $forum_per_page); - } - - print theme('forum_display', $forums, $topics, $parents, $tid, $sortby, $forum_per_page); + $forums = forum_get_forums($tid); + $parents = taxonomy_get_parents_all($tid); + if ($tid && !in_array($tid, variable_get('forum_containers', array()))) { + $topics = forum_get_topics($tid, $sortby, $forum_per_page); } + + print theme('forum_display', $forums, $topics, $parents, $tid, $sortby, $forum_per_page); } else { print theme('page', forum_help('admin/settings/forum'), t('Warning')); |