aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_posting.php
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2015-02-03 18:13:20 +0100
committerAndreas Fischer <bantu@phpbb.com>2015-02-03 18:13:20 +0100
commit284aa8c496d658c196a0dfa3c90657415ee4c2ee (patch)
tree6ea6f60315c6ac672b194ea0e22288d77d7f9815 /phpBB/includes/functions_posting.php
parent3fb6d5b838c33dc31563de7febbe827647f85abc (diff)
parenta633f3484c63fe4bd70df548b3ae4bd569bdef46 (diff)
downloadforums-284aa8c496d658c196a0dfa3c90657415ee4c2ee.tar
forums-284aa8c496d658c196a0dfa3c90657415ee4c2ee.tar.gz
forums-284aa8c496d658c196a0dfa3c90657415ee4c2ee.tar.bz2
forums-284aa8c496d658c196a0dfa3c90657415ee4c2ee.tar.xz
forums-284aa8c496d658c196a0dfa3c90657415ee4c2ee.zip
Merge pull request #3281 from MGaetan89/ticket/13496
[ticket/13496] Change set_config_count() calls with $config->increment() * MGaetan89/ticket/13496: [ticket/13496] Update calls to `set_config_count()`
Diffstat (limited to 'phpBB/includes/functions_posting.php')
-rw-r--r--phpBB/includes/functions_posting.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/phpBB/includes/functions_posting.php b/phpBB/includes/functions_posting.php
index b15406533a..38d4df703f 100644
--- a/phpBB/includes/functions_posting.php
+++ b/phpBB/includes/functions_posting.php
@@ -1937,9 +1937,9 @@ function submit_post($mode, $subject, $username, $topic_type, &$poll, &$data, $u
{
if ($post_mode == 'post')
{
- set_config_count('num_topics', 1, true);
+ $config->increment('num_topics', 1, false);
}
- set_config_count('num_posts', 1, true);
+ $config->increment('num_posts', 1, false);
$sql_data[FORUMS_TABLE]['stat'][] = 'forum_last_post_id = ' . $data['post_id'];
$sql_data[FORUMS_TABLE]['stat'][] = "forum_last_post_subject = '" . $db->sql_escape($subject) . "'";
@@ -2112,8 +2112,8 @@ function submit_post($mode, $subject, $username, $topic_type, &$poll, &$data, $u
if ($space_taken && $files_added)
{
- set_config_count('upload_dir_size', $space_taken, true);
- set_config_count('num_files', $files_added, true);
+ $config->increment('upload_dir_size', $space_taken, false);
+ $config->increment('num_files', $files_added, false);
}
}