mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
[ticket/13147] Removing globals and using injection
Using globals is NG. Using a parameter instead. PHPBB3-13147
This commit is contained in:
parent
0f6a0d820e
commit
a09c38f1cc
1 changed files with 1 additions and 3 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue