mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/11336] Changes "leaders"-mode to "team"-mode and so in test-file
PHPBB3-11336
This commit is contained in:
parent
0be6582d7f
commit
76558fbce5
5 changed files with 5 additions and 5 deletions
|
@ -4883,7 +4883,7 @@ function page_header($page_title = '', $display_online_list = false, $item_id =
|
|||
'U_SEARCH_UNREAD' => append_sid("{$phpbb_root_path}search.$phpEx", 'search_id=unreadposts'),
|
||||
'U_SEARCH_ACTIVE_TOPICS'=> append_sid("{$phpbb_root_path}search.$phpEx", 'search_id=active_topics'),
|
||||
'U_DELETE_COOKIES' => append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=delete_cookies'),
|
||||
'U_TEAM' => ($user->data['user_id'] != ANONYMOUS && !$auth->acl_get('u_viewprofile')) ? '' : append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=leaders'),
|
||||
'U_TEAM' => ($user->data['user_id'] != ANONYMOUS && !$auth->acl_get('u_viewprofile')) ? '' : append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=team'),
|
||||
'U_TERMS_USE' => append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=terms'),
|
||||
'U_PRIVACY' => append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=privacy'),
|
||||
'U_RESTORE_PERMISSIONS' => ($user->data['user_perm_from'] && $auth->acl_get('a_switchperm')) ? append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=restore_perm') : '',
|
||||
|
|
|
@ -30,7 +30,7 @@ $group_id = request_var('g', 0);
|
|||
$topic_id = request_var('t', 0);
|
||||
|
||||
// Check our mode...
|
||||
if (!in_array($mode, array('', 'group', 'viewprofile', 'email', 'contact', 'searchuser', 'leaders')))
|
||||
if (!in_array($mode, array('', 'group', 'viewprofile', 'email', 'contact', 'searchuser', 'team')))
|
||||
{
|
||||
trigger_error('NO_MODE');
|
||||
}
|
||||
|
@ -64,12 +64,12 @@ $sort_dir = request_var('sd', 'a');
|
|||
// What do you want to do today? ... oops, I think that line is taken ...
|
||||
switch ($mode)
|
||||
{
|
||||
case 'leaders':
|
||||
case 'team':
|
||||
// Display a listing of board admins, moderators
|
||||
include($phpbb_root_path . 'includes/functions_user.' . $phpEx);
|
||||
|
||||
$page_title = $user->lang['THE_TEAM'];
|
||||
$template_html = 'memberlist_leaders.html';
|
||||
$template_html = 'memberlist_team.html';
|
||||
|
||||
$sql = 'SELECT *
|
||||
FROM ' . TEAMPAGE_TABLE . '
|
||||
|
|
|
@ -39,7 +39,7 @@ class phpbb_functional_memberlist_test extends phpbb_functional_test_case
|
|||
|
||||
protected function get_memberlist_leaders_table_crawler()
|
||||
{
|
||||
$crawler = self::request('GET', 'memberlist.php?mode=leaders&sid=' . $this->sid);
|
||||
$crawler = self::request('GET', 'memberlist.php?mode=team&sid=' . $this->sid);
|
||||
return $crawler->filter('.forumbg-table');
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue