diff options
Diffstat (limited to 'phpBB/index.php')
| -rw-r--r-- | phpBB/index.php | 8 | 
1 files changed, 6 insertions, 2 deletions
| diff --git a/phpBB/index.php b/phpBB/index.php index e4c03949c1..83535b50af 100644 --- a/phpBB/index.php +++ b/phpBB/index.php @@ -42,9 +42,10 @@ if (($mark_notification = $request->variable('mark_notification', 0)))  	if (check_link_hash($request->variable('hash', ''), 'mark_notification_read'))  	{ +		/* @var $phpbb_notifications \phpbb\notification\manager */  		$phpbb_notifications = $phpbb_container->get('notification_manager'); -		$notification = $phpbb_notifications->load_notifications(array( +		$notification = $phpbb_notifications->load_notifications('notification.method.board', array(  			'notification_id'	=> $mark_notification,  		)); @@ -99,11 +100,14 @@ else  }  $result = $db->sql_query($sql); +/** @var \phpbb\group\helper $group_helper */ +$group_helper = $phpbb_container->get('group_helper'); +  $legend = array();  while ($row = $db->sql_fetchrow($result))  {  	$colour_text = ($row['group_colour']) ? ' style="color:#' . $row['group_colour'] . '"' : ''; -	$group_name = ($row['group_type'] == GROUP_SPECIAL) ? $user->lang['G_' . $row['group_name']] : $row['group_name']; +	$group_name = $group_helper->get_name($row['group_name']);  	if ($row['group_name'] == 'BOTS' || ($user->data['user_id'] != ANONYMOUS && !$auth->acl_get('u_viewprofile')))  	{ | 
