aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--phpBB/includes/functions.php2
-rw-r--r--phpBB/posting.php8
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)))