aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_admin.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2007-03-03 17:41:21 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2007-03-03 17:41:21 +0000
commitc93a40ed0c8d2570dfc82719a3b56590cf7a92f8 (patch)
treeb9cf8d7a9dbc4bfcaed7212e3d844c11ae3fce49 /phpBB/includes/functions_admin.php
parentb231c4234c513b3d9228306cf4c221e323456363 (diff)
downloadforums-c93a40ed0c8d2570dfc82719a3b56590cf7a92f8.tar
forums-c93a40ed0c8d2570dfc82719a3b56590cf7a92f8.tar.gz
forums-c93a40ed0c8d2570dfc82719a3b56590cf7a92f8.tar.bz2
forums-c93a40ed0c8d2570dfc82719a3b56590cf7a92f8.tar.xz
forums-c93a40ed0c8d2570dfc82719a3b56590cf7a92f8.zip
Fixing the following bugs:
#8444 (language dependent buttons no longer include the dimensions to allow bigger/smaller translated images) #8414 #8396 #8388 #8216 thanks to bartvb and kellanved for providing possible fixes... git-svn-id: file:///svn/phpbb/trunk@7114 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_admin.php')
-rw-r--r--phpBB/includes/functions_admin.php11
1 files changed, 2 insertions, 9 deletions
diff --git a/phpBB/includes/functions_admin.php b/phpBB/includes/functions_admin.php
index 99135eeadb..f2964a2f39 100644
--- a/phpBB/includes/functions_admin.php
+++ b/phpBB/includes/functions_admin.php
@@ -508,14 +508,7 @@ function delete_topics($where_type, $where_ids, $auto_sync = true, $post_count_s
}
else
{
- if (is_array($where_ids))
- {
- $where_ids = array_unique($where_ids);
- }
- else
- {
- $where_ids = array($where_ids);
- }
+ $where_ids = (is_array($where_ids)) ? array_unique($where_ids) : array($where_ids);
if (!sizeof($where_ids))
{
@@ -735,7 +728,7 @@ function delete_posts($where_type, $where_ids, $auto_sync = true, $posted_sync =
// We actually remove topics now to not be inconsistent (the delete_topics function calls this function too)
if (sizeof($remove_topics))
{
- delete_topics('topic_id', $remove_topics);
+ delete_topics('topic_id', $remove_topics, $auto_sync, $post_count_sync);
}
return sizeof($post_ids);