From bbc49787b4efd62ce5904af572eb336758416140 Mon Sep 17 00:00:00 2001 From: Ludovic Arnaud Date: Wed, 22 Jan 2003 20:52:09 +0000 Subject: [PATCH] Re-enabled fully dynamic config settings. git-svn-id: file:///svn/phpbb/trunk@3361 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/functions.php | 2 +- phpBB/posting.php | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index fc14135b36..e954e28796 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -19,7 +19,7 @@ * ***************************************************************************/ -function set_config($config_name, $config_value, $is_dynamic = TRUE) +function set_config($config_name, $config_value, $is_dynamic = FALSE) { global $db, $cache, $config; diff --git a/phpBB/posting.php b/phpBB/posting.php index f511f0d894..2ad4d73d08 100644 --- a/phpBB/posting.php +++ b/phpBB/posting.php @@ -488,15 +488,15 @@ if (isset($_REQUEST['post'])) WHERE user_id = ' . $user->data['user_id']; $db->sql_query($sql); } -/* + // post counts for index, etc. if ($mode == 'post') { - set_config('num_topics', $config['num_topics'] + 1); + set_config('num_topics', $config['num_topics'] + 1, TRUE); } - set_config('num_posts', $config['num_posts'] + 1); -*/ } + set_config('num_posts', $config['num_posts'] + 1, TRUE); + } // Topic notification if (!empty($notify) && ($mode == 'post' || empty($notify_set)))