Commit 42f42351 authored by mose's avatar mose

[FIX] forums: fixed sections declaration

parent 8a902e30
<?php
// $Header: /cvsroot/tikiwiki/tiki/tiki-admin_forums.php,v 1.39 2006-10-22 23:38:58 rlpowell Exp $
// $Header: /cvsroot/tikiwiki/tiki/tiki-admin_forums.php,v 1.40 2006-12-03 23:00:56 mose Exp $
// Copyright (c) 2002-2005, Luis Argerich, Garland Foster, Eduardo Polidor, et. al.
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
// Initialization
$section = 'forums';
require_once ('tiki-setup.php');
if (!isset($_REQUEST["forumId"])) {
......@@ -257,7 +258,7 @@ $smarty->assign_by_ref('groups', $groups);
$sections = $tikilib->get_forum_sections();
$smarty->assign_by_ref('sections', $sections);
$section = 'forums';
include_once ('tiki-section_options.php');
ask_ticket('admin-forums');
......
<?php
// $Header: /cvsroot/tikiwiki/tiki/tiki-forum_queue.php,v 1.14 2005-05-18 10:58:56 mose Exp $
// $Header: /cvsroot/tikiwiki/tiki/tiki-forum_queue.php,v 1.15 2006-12-03 22:58:38 mose Exp $
// Copyright (c) 2002-2005, Luis Argerich, Garland Foster, Eduardo Polidor, et. al.
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
// Initialization
$section = 'forums';
require_once ('tiki-setup.php');
// Forums must be active
......@@ -289,6 +290,8 @@ $topics = $commentslib->get_forum_topics($_REQUEST['forumId']);
$smarty->assign_by_ref('topics', $topics);
ask_ticket('forum-queue');
include_once ('tiki-section_options.php');
// Display the template
$smarty->assign('mid', 'tiki-forum_queue.tpl');
$smarty->display("tiki.tpl");
......
<?php
// $Header: /cvsroot/tikiwiki/tiki/tiki-forum_rankings.php,v 1.12 2005-05-18 10:58:56 mose Exp $
// $Header: /cvsroot/tikiwiki/tiki/tiki-forum_rankings.php,v 1.13 2006-12-03 22:58:38 mose Exp $
// Copyright (c) 2002-2005, Luis Argerich, Garland Foster, Eduardo Polidor, et. al.
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
// Initialization
$section = 'forums';
require_once ('tiki-setup.php');
include_once ('lib/rankings/ranklib.php');
......@@ -89,7 +90,7 @@ $rankings[] = $rank;
$smarty->assign_by_ref('rankings', $rankings);
$smarty->assign('rpage', 'tiki-forum_rankings.php');
$section = 'forums';
include_once ('tiki-section_options.php');
ask_ticket('forum-rankings');
......
<?php
// $Header: /cvsroot/tikiwiki/tiki/tiki-forums.php,v 1.15 2005-11-07 21:42:29 sylvieg Exp $
// $Header: /cvsroot/tikiwiki/tiki/tiki-forums.php,v 1.16 2006-12-03 22:58:38 mose Exp $
// Copyright (c) 2002-2005, Luis Argerich, Garland Foster, Eduardo Polidor, et. al.
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
// Initialization
$section = 'forums';
require_once ('tiki-setup.php');
if ($feature_forums != 'y') {
......@@ -110,7 +111,7 @@ if ($offset > 0) {
}
$smarty->assign_by_ref('channels', $channels["data"]);
$section = 'forums';
include_once ('tiki-section_options.php');
if ($feature_mobile =='y' && isset($_REQUEST['mode']) && $_REQUEST['mode'] == 'mobile') {
......
......@@ -7,6 +7,7 @@
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
// Initialization
$section = 'forums';
require_once ('tiki-setup.php');
// Forums must be active
......@@ -176,6 +177,8 @@ $topics = $commentslib->get_forum_topics($_REQUEST['forumId']);
$smarty->assign_by_ref('topics', $topics);
ask_ticket('forum-reported');
include_once ('tiki-section_options.php');
// Display the template
$smarty->assign('mid', 'tiki-forums_reported.tpl');
$smarty->display("tiki.tpl");
......
<?php
// $Header: /cvsroot/tikiwiki/tiki/tiki-setup.php,v 1.342 2006-12-03 21:36:44 mose Exp $
// $Header: /cvsroot/tikiwiki/tiki/tiki-setup.php,v 1.343 2006-12-03 22:58:38 mose Exp $
// Copyright (c) 2002-2005, Luis Argerich, Garland Foster, Eduardo Polidor, et. al.
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
......@@ -758,9 +758,6 @@ $sections['charts']['itemkey'] = '';
$pref['feature_charts'] = 'n';
# rss
$sections['forum']['feature'] = 'feature_forums';
$sections['forum']['key'] = 'forumId';
$sections['forum']['itemkey'] = 'comments_parentId';
$pref['rss_forums'] = 'y';
$pref['rss_forum'] = 'y';
$pref['rss_directories'] = 'y';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment