mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
[ticket/9837] Make unapproved posts visible to posters
Add tests Tidy up code Improve user message formatting PHPBB3-9837
This commit is contained in:
parent
1f10cd51ff
commit
9fff4cf253
2 changed files with 5 additions and 9 deletions
|
@ -76,7 +76,7 @@ class content_visibility
|
||||||
* @param string $topics_table Topics table name
|
* @param string $topics_table Topics table name
|
||||||
* @param string $users_table Users table name
|
* @param string $users_table Users table name
|
||||||
*/
|
*/
|
||||||
public function __construct(\phpbb\auth\auth $auth, \phpbb\config\config $config, \phpbb\event\dispatcher_interface $phpbb_dispatcher, \phpbb\db\driver\driver_interface $db, \phpbb\user $user, $phpbb_root_path, $php_ext, $forums_table, $posts_table, $topics_table, $users_table)
|
public function __construct(\phpbb\auth\auth $auth, \phpbb\config\config $config, \phpbb\event\dispatcher_interface $phpbb_dispatcher, \phpbb\db\driver\driver_interface $db, \phpbb\user $user, $phpbb_root_path, $php_ext, $forums_table, $posts_table, $topics_table, $users_table)
|
||||||
{
|
{
|
||||||
$this->auth = $auth;
|
$this->auth = $auth;
|
||||||
$this->config = $config;
|
$this->config = $config;
|
||||||
|
@ -200,8 +200,8 @@ class content_visibility
|
||||||
* @var array forum_id The forum id in which the search is made.
|
* @var array forum_id The forum id in which the search is made.
|
||||||
* @var string table_alias Table alias to prefix in SQL queries
|
* @var string table_alias Table alias to prefix in SQL queries
|
||||||
* @var mixed get_visibility_sql_overwrite If a string, forces the function to return get_forums_visibility_sql_overwrite after executing the event
|
* @var mixed get_visibility_sql_overwrite If a string, forces the function to return get_forums_visibility_sql_overwrite after executing the event
|
||||||
* If false, get_visibility_sql continues normally
|
* If false, get_visibility_sql continues normally
|
||||||
* It must be either boolean or string
|
* It must be either boolean or string
|
||||||
* @since 3.1.4-RC1
|
* @since 3.1.4-RC1
|
||||||
*/
|
*/
|
||||||
$vars = array(
|
$vars = array(
|
||||||
|
@ -270,8 +270,8 @@ class content_visibility
|
||||||
* @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 mixed get_forums_visibility_sql_overwrite If a string, forces the function to return get_forums_visibility_sql_overwrite after executing the event
|
* @var mixed get_forums_visibility_sql_overwrite If a string, forces the function to return get_forums_visibility_sql_overwrite after executing the event
|
||||||
* If false, get_forums_visibility_sql continues normally
|
* If false, get_forums_visibility_sql continues normally
|
||||||
* It must be either boolean or string
|
* It must be either boolean or string
|
||||||
* @since 3.1.3-RC1
|
* @since 3.1.3-RC1
|
||||||
*/
|
*/
|
||||||
$vars = array(
|
$vars = array(
|
||||||
|
|
|
@ -1161,7 +1161,3 @@ li.notification-reported strong, li.notification-disapproved strong {
|
||||||
background-color: #D31141;
|
background-color: #D31141;
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.information {
|
|
||||||
background-color: #b8d3e0;
|
|
||||||
}
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue