mirror of
https://github.com/phpbb/phpbb.git
synced 2025-02-24 20:13:22 +01:00
[ticket/13147] Renaming content_replaced->get_global_visibility_sql_overwrite
Renamed content_replaced to get_global_visibility_sql_overwrite in order to follow the convention in other events' variables that have the same basic function PHPBB3-13147
This commit is contained in:
parent
a09c38f1cc
commit
9caec668af
@ -244,7 +244,7 @@ class content_visibility
|
|||||||
|
|
||||||
$approve_forums = array_diff(array_keys($this->auth->acl_getf('m_approve', true)), $exclude_forum_ids);
|
$approve_forums = array_diff(array_keys($this->auth->acl_getf('m_approve', true)), $exclude_forum_ids);
|
||||||
|
|
||||||
$content_replaced = null;
|
$get_global_visibility_sql_overwrite = null;
|
||||||
/**
|
/**
|
||||||
* Allow changing the result of calling get_global_visibility_sql
|
* Allow changing the result of calling get_global_visibility_sql
|
||||||
*
|
*
|
||||||
@ -254,7 +254,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 string content_replaced Forces the function to return an implosion of where_sqls (joined by "OR")
|
* @var string get_global_visibility_sql_overwrite Forces the function to return an implosion of where_sqls (joined by "OR")
|
||||||
* @since 3.1.3-RC1
|
* @since 3.1.3-RC1
|
||||||
*/
|
*/
|
||||||
$vars = array(
|
$vars = array(
|
||||||
@ -263,13 +263,13 @@ class content_visibility
|
|||||||
'forum_ids',
|
'forum_ids',
|
||||||
'table_alias',
|
'table_alias',
|
||||||
'approve_forums',
|
'approve_forums',
|
||||||
'content_replaced',
|
'get_global_visibility_sql_overwrite',
|
||||||
);
|
);
|
||||||
extract($this->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)
|
if ($get_global_visibility_sql_overwrite)
|
||||||
{
|
{
|
||||||
return $content_replaced;
|
return $get_global_visibility_sql_overwrite;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user