aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/content_visibility.php
diff options
context:
space:
mode:
authorbrunoais <brunoaiss@gmail.com>2014-11-29 15:25:16 +0000
committerbrunoais <brunoaiss@gmail.com>2015-01-10 11:44:54 +0000
commita09c38f1cc2f19d2e475fdaa5b2be259565768ac (patch)
treeb03ff0336ba7563e09a97f607fa76c7ddf26900c /phpBB/phpbb/content_visibility.php
parent0f6a0d820e435c3d61f165d8ed1e70c4110123af (diff)
downloadforums-a09c38f1cc2f19d2e475fdaa5b2be259565768ac.tar
forums-a09c38f1cc2f19d2e475fdaa5b2be259565768ac.tar.gz
forums-a09c38f1cc2f19d2e475fdaa5b2be259565768ac.tar.bz2
forums-a09c38f1cc2f19d2e475fdaa5b2be259565768ac.tar.xz
forums-a09c38f1cc2f19d2e475fdaa5b2be259565768ac.zip
[ticket/13147] Removing globals and using injection
Using globals is NG. Using a parameter instead. PHPBB3-13147
Diffstat (limited to 'phpBB/phpbb/content_visibility.php')
-rw-r--r--phpBB/phpbb/content_visibility.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/phpBB/phpbb/content_visibility.php b/phpBB/phpbb/content_visibility.php
index fafb564b79..53ba50ef7c 100644
--- a/phpBB/phpbb/content_visibility.php
+++ b/phpBB/phpbb/content_visibility.php
@@ -240,8 +240,6 @@ class content_visibility
*/
public function get_global_visibility_sql($mode, $exclude_forum_ids = array(), $table_alias = '')
{
- global $phpbb_dispatcher;
-
$where_sqls = array();
$approve_forums = array_diff(array_keys($this->auth->acl_getf('m_approve', true)), $exclude_forum_ids);
@@ -267,7 +265,7 @@ class content_visibility
'approve_forums',
'content_replaced',
);
- extract($phpbb_dispatcher->trigger_event('core.phpbb_content_visibility_get_global_visibility_before', compact($vars)));
+ extract($this->phpbb_dispatcher->trigger_event('core.phpbb_content_visibility_get_global_visibility_before', compact($vars)));
if ($content_replaced)
{