mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
Fixed new PM link and added online status flag
git-svn-id: file:///svn/phpbb/trunk@5410 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
82aed60ac0
commit
369d6b7303
2 changed files with 3 additions and 2 deletions
|
@ -288,7 +288,7 @@ function get_pm_from($folder_id, $folder, $user_id, $url, $type = 'folder')
|
||||||
'S_SELECT_SORT_DAYS' => $s_limit_days,
|
'S_SELECT_SORT_DAYS' => $s_limit_days,
|
||||||
'S_TOPIC_ICONS' => ($config['enable_pm_icons']) ? true : false,
|
'S_TOPIC_ICONS' => ($config['enable_pm_icons']) ? true : false,
|
||||||
|
|
||||||
'U_POST_NEW_TOPIC' => ($auth->acl_get('u_sendpm')) ? "$url&i=compose&action=post" : '',
|
'U_POST_NEW_TOPIC' => ($auth->acl_get('u_sendpm')) ? "$url&i=pm&mode=compose" : '',
|
||||||
'S_PM_ACTION' => "$url&i=pm&mode=view&action=view_folder&f=$folder_id")
|
'S_PM_ACTION' => "$url&i=pm&mode=view&action=view_folder&f=$folder_id")
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -170,6 +170,7 @@ function view_message($id, $mode, $folder_id, $msg_id, $folder, $message_row)
|
||||||
'AUTHOR_FROM' => (!empty($user_info['user_from'])) ? $user_info['user_from'] : '',
|
'AUTHOR_FROM' => (!empty($user_info['user_from'])) ? $user_info['user_from'] : '',
|
||||||
|
|
||||||
'ONLINE_IMG' => (!$config['load_onlinetrack']) ? '' : ((isset($user_info['online']) && $user_info['online']) ? $user->img('btn_online', $user->lang['ONLINE']) : $user->img('btn_offline', $user->lang['OFFLINE'])),
|
'ONLINE_IMG' => (!$config['load_onlinetrack']) ? '' : ((isset($user_info['online']) && $user_info['online']) ? $user->img('btn_online', $user->lang['ONLINE']) : $user->img('btn_offline', $user->lang['OFFLINE'])),
|
||||||
|
'S_ONLINE' => (!$config['load_onlinetrack']) ? false : ((isset($user_info['online']) && $user_info['online']) ? true : false),
|
||||||
'DELETE_IMG' => $user->img('btn_delete', $user->lang['DELETE_MESSAGE']),
|
'DELETE_IMG' => $user->img('btn_delete', $user->lang['DELETE_MESSAGE']),
|
||||||
'INFO_IMG' => $user->img('btn_info', $user->lang['VIEW_PM_INFO']),
|
'INFO_IMG' => $user->img('btn_info', $user->lang['VIEW_PM_INFO']),
|
||||||
'REPORT_IMG' => $user->img('btn_report', $user->lang['REPORT_PM']),
|
'REPORT_IMG' => $user->img('btn_report', $user->lang['REPORT_PM']),
|
||||||
|
|
Loading…
Add table
Reference in a new issue