mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
Merge branch '3.2.x'
This commit is contained in:
commit
e7fa0de888
1 changed files with 4 additions and 2 deletions
|
@ -123,8 +123,10 @@ $db->sql_freeresult($result);
|
||||||
$legend = implode($user->lang['COMMA_SEPARATOR'], $legend);
|
$legend = implode($user->lang['COMMA_SEPARATOR'], $legend);
|
||||||
|
|
||||||
// Generate birthday list if required ...
|
// Generate birthday list if required ...
|
||||||
|
$show_birthdays = ($config['load_birthdays'] && $config['allow_birthdays'] && $auth->acl_gets('u_viewprofile', 'a_user', 'a_useradd', 'a_userdel'));
|
||||||
|
|
||||||
$birthdays = $birthday_list = array();
|
$birthdays = $birthday_list = array();
|
||||||
if ($config['load_birthdays'] && $config['allow_birthdays'] && $auth->acl_gets('u_viewprofile', 'a_user', 'a_useradd', 'a_userdel'))
|
if ($show_birthdays)
|
||||||
{
|
{
|
||||||
$time = $user->create_datetime();
|
$time = $user->create_datetime();
|
||||||
$now = phpbb_gmgetdate($time->getTimestamp() + $time->getOffset());
|
$now = phpbb_gmgetdate($time->getTimestamp() + $time->getOffset());
|
||||||
|
@ -215,7 +217,7 @@ $template->assign_vars(array(
|
||||||
|
|
||||||
'S_LOGIN_ACTION' => append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=login'),
|
'S_LOGIN_ACTION' => append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=login'),
|
||||||
'U_SEND_PASSWORD' => ($config['email_enable']) ? append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=sendpassword') : '',
|
'U_SEND_PASSWORD' => ($config['email_enable']) ? append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=sendpassword') : '',
|
||||||
'S_DISPLAY_BIRTHDAY_LIST' => ($config['load_birthdays']) ? true : false,
|
'S_DISPLAY_BIRTHDAY_LIST' => $show_birthdays,
|
||||||
'S_INDEX' => true,
|
'S_INDEX' => true,
|
||||||
|
|
||||||
'U_MARK_FORUMS' => ($user->data['is_registered'] || $config['load_anon_lastread']) ? append_sid("{$phpbb_root_path}index.$phpEx", 'hash=' . generate_link_hash('global') . '&mark=forums&mark_time=' . time()) : '',
|
'U_MARK_FORUMS' => ($user->data['is_registered'] || $config['load_anon_lastread']) ? append_sid("{$phpbb_root_path}index.$phpEx", 'hash=' . generate_link_hash('global') . '&mark=forums&mark_time=' . time()) : '',
|
||||||
|
|
Loading…
Add table
Reference in a new issue