aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_admin.php
diff options
context:
space:
mode:
authorGaëtan Muller <m.gaetan89@gmail.com>2015-01-11 18:01:52 +0100
committerGaëtan Muller <m.gaetan89@gmail.com>2015-02-02 21:52:59 +0100
commita633f3484c63fe4bd70df548b3ae4bd569bdef46 (patch)
tree84e22d369b32d520dad249a2e8b7a13394b0a108 /phpBB/includes/functions_admin.php
parentdf77174a2b2a8f9e86ee8f992556dd4820484be3 (diff)
downloadforums-a633f3484c63fe4bd70df548b3ae4bd569bdef46.tar
forums-a633f3484c63fe4bd70df548b3ae4bd569bdef46.tar.gz
forums-a633f3484c63fe4bd70df548b3ae4bd569bdef46.tar.bz2
forums-a633f3484c63fe4bd70df548b3ae4bd569bdef46.tar.xz
forums-a633f3484c63fe4bd70df548b3ae4bd569bdef46.zip
[ticket/13496] Update calls to `set_config_count()`
PHPBB3-13496
Diffstat (limited to 'phpBB/includes/functions_admin.php')
-rw-r--r--phpBB/includes/functions_admin.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/phpBB/includes/functions_admin.php b/phpBB/includes/functions_admin.php
index 16693d1c0a..1c9440934b 100644
--- a/phpBB/includes/functions_admin.php
+++ b/phpBB/includes/functions_admin.php
@@ -712,7 +712,7 @@ function delete_topics($where_type, $where_ids, $auto_sync = true, $post_count_s
if ($approved_topics)
{
- set_config_count('num_topics', $approved_topics * (-1), true);
+ $config->increment('num_topics', $approved_topics * (-1), false);
}
/* @var $phpbb_notifications \phpbb\notification\manager */
@@ -971,7 +971,7 @@ function delete_posts($where_type, $where_ids, $auto_sync = true, $posted_sync =
if ($approved_posts && $post_count_sync)
{
- set_config_count('num_posts', $approved_posts * (-1), true);
+ $config->increment('num_posts', $approved_posts * (-1), false);
}
// We actually remove topics now to not be inconsistent (the delete_topics function calls this function too)
@@ -1104,8 +1104,8 @@ function delete_attachments($mode, $ids, $resync = true)
if ($space_removed || $files_removed)
{
- set_config_count('upload_dir_size', $space_removed * (-1), true);
- set_config_count('num_files', $files_removed * (-1), true);
+ $config->increment('upload_dir_size', $space_removed * (-1), false);
+ $config->increment('num_files', $files_removed * (-1), false);
}
// If we do not resync, we do not need to adjust any message, post, topic or user entries