aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_admin.php
diff options
context:
space:
mode:
authorNathan Guse <nathaniel.guse@gmail.com>2012-10-04 14:47:13 -0500
committerNathan Guse <nathaniel.guse@gmail.com>2012-10-04 14:47:13 -0500
commitb9bc65eed88bbd2dff12102909903cbf4dc9b368 (patch)
treef8ede0fe1a0d295fd764c34f56990fe08378e0bc /phpBB/includes/functions_admin.php
parent07fb66ac1090dfe92431ed749b520115595f7927 (diff)
downloadforums-b9bc65eed88bbd2dff12102909903cbf4dc9b368.tar
forums-b9bc65eed88bbd2dff12102909903cbf4dc9b368.tar.gz
forums-b9bc65eed88bbd2dff12102909903cbf4dc9b368.tar.bz2
forums-b9bc65eed88bbd2dff12102909903cbf4dc9b368.tar.xz
forums-b9bc65eed88bbd2dff12102909903cbf4dc9b368.zip
[ticket/11103] Make $phpbb_notifications a global and use it everywhere
Do not use phpbb_container everywhere (makes testing difficult) PHPBB3-11103
Diffstat (limited to 'phpBB/includes/functions_admin.php')
-rw-r--r--phpBB/includes/functions_admin.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/phpBB/includes/functions_admin.php b/phpBB/includes/functions_admin.php
index 27128aafac..3deb2e9c59 100644
--- a/phpBB/includes/functions_admin.php
+++ b/phpBB/includes/functions_admin.php
@@ -619,7 +619,7 @@ function move_posts($post_ids, $topic_id, $auto_sync = true)
function delete_topics($where_type, $where_ids, $auto_sync = true, $post_count_sync = true, $call_delete_posts = true)
{
global $db, $config;
- global $phpbb_container;
+ global $phpbb_notifications;
$approved_topics = 0;
$forum_ids = $topic_ids = array();
@@ -717,7 +717,6 @@ function delete_topics($where_type, $where_ids, $auto_sync = true, $post_count_s
}
// Delete notifications
- $phpbb_notifications = $phpbb_container->get('notifications');
$phpbb_notifications->delete_notifications(array('topic', 'approve_topic', 'topic_in_queue'), $topic_ids);
return $return;
@@ -729,7 +728,7 @@ function delete_topics($where_type, $where_ids, $auto_sync = true, $post_count_s
function delete_posts($where_type, $where_ids, $auto_sync = true, $posted_sync = true, $post_count_sync = true, $call_delete_topics = true)
{
global $db, $config, $phpbb_root_path, $phpEx, $auth, $user;
- global $phpbb_container;
+ global $phpbb_notifications;
if ($where_type === 'range')
{
@@ -899,7 +898,6 @@ function delete_posts($where_type, $where_ids, $auto_sync = true, $posted_sync =
}
// Delete notifications
- $phpbb_notifications = $phpbb_container->get('notifications');
$phpbb_notifications->delete_notifications(array('quote', 'bookmark', 'post', 'approve_post', 'post_in_queue'), $post_ids);
return sizeof($post_ids);