mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/13146] Fixed variable name for the override
PHPBB3-13146
This commit is contained in:
parent
4159bb1340
commit
10a4f79135
1 changed files with 5 additions and 5 deletions
|
@ -168,7 +168,7 @@ class content_visibility
|
||||||
|
|
||||||
$approve_forums = array_intersect($forum_ids, array_keys($this->auth->acl_getf('m_approve', true)));
|
$approve_forums = array_intersect($forum_ids, array_keys($this->auth->acl_getf('m_approve', true)));
|
||||||
|
|
||||||
$content_replaced = false;
|
$get_forums_visibility_sql_overwrite = false;
|
||||||
/**
|
/**
|
||||||
* Allow changing the result of calling get_forums_visibility_sql
|
* Allow changing the result of calling get_forums_visibility_sql
|
||||||
*
|
*
|
||||||
|
@ -178,7 +178,7 @@ class content_visibility
|
||||||
* @var array forum_ids Array of forum ids which the posts/topics are limited to
|
* @var array forum_ids Array of forum ids which the posts/topics are limited to
|
||||||
* @var string table_alias Table alias to prefix in SQL queries
|
* @var string table_alias Table alias to prefix in SQL queries
|
||||||
* @var array approve_forums Array of forums where the user has m_approve permissions
|
* @var array approve_forums Array of forums where the user has m_approve permissions
|
||||||
* @var bool content_replaced Forces the function to return where_sql after executing the event
|
* @var bool get_forums_visibility_sql_overwrite Forces the function to return where_sql after executing the event
|
||||||
* @since 3.1.3-RC1
|
* @since 3.1.3-RC1
|
||||||
*/
|
*/
|
||||||
$vars = array(
|
$vars = array(
|
||||||
|
@ -187,13 +187,13 @@ class content_visibility
|
||||||
'forum_ids',
|
'forum_ids',
|
||||||
'table_alias',
|
'table_alias',
|
||||||
'approve_forums',
|
'approve_forums',
|
||||||
'content_replaced',
|
'get_forums_visibility_sql_overwrite',
|
||||||
);
|
);
|
||||||
extract($this->phpbb_dispatcher->trigger_event('core.phpbb_content_visibility_get_forums_visibility_before', compact($vars)));
|
extract($this->phpbb_dispatcher->trigger_event('core.phpbb_content_visibility_get_forums_visibility_before', compact($vars)));
|
||||||
|
|
||||||
if ($content_replaced)
|
if ($get_forums_visibility_sql_overwrite)
|
||||||
{
|
{
|
||||||
return $content_replaced;
|
return $get_forums_visibility_sql_overwrite;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue