From c93a40ed0c8d2570dfc82719a3b56590cf7a92f8 Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Sat, 3 Mar 2007 17:41:21 +0000 Subject: 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 --- phpBB/includes/functions_admin.php | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'phpBB/includes/functions_admin.php') 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); -- cgit v1.2.1