mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
merge in r9090, r9170, r9174, r9179
git-svn-id: file:///svn/phpbb/trunk@9214 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
79f2dedb51
commit
7e95a3ee6c
5 changed files with 12 additions and 8 deletions
|
@ -661,6 +661,8 @@ class acp_modules
|
||||||
|
|
||||||
$iteration++;
|
$iteration++;
|
||||||
}
|
}
|
||||||
|
$db->sql_freeresult($result);
|
||||||
|
|
||||||
unset($padding_store);
|
unset($padding_store);
|
||||||
|
|
||||||
return $module_list;
|
return $module_list;
|
||||||
|
|
|
@ -1984,7 +1984,8 @@ class user extends session
|
||||||
static $date_cache;
|
static $date_cache;
|
||||||
|
|
||||||
$format = (!$format) ? $this->date_format : $format;
|
$format = (!$format) ? $this->date_format : $format;
|
||||||
$delta = time() - $gmepoch;
|
$now = time();
|
||||||
|
$delta = $now - $gmepoch;
|
||||||
|
|
||||||
if (!isset($date_cache[$format]))
|
if (!isset($date_cache[$format]))
|
||||||
{
|
{
|
||||||
|
@ -2004,10 +2005,11 @@ class user extends session
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Show date < 1 hour ago as 'xx min ago'
|
// Show date <= 1 hour ago as 'xx min ago'
|
||||||
if ($delta <= 3600 && $delta && $date_cache[$format]['is_short'] !== false && !$forcedate && isset($this->lang['datetime']['AGO']))
|
// A small tolerence is given for times in the future and times in the future but in the same minute are displayed as '< than a minute ago'
|
||||||
|
if ($delta <= 3600 && ($delta >= -5 || (($now / 60) % 60) == (($gmepoch / 60) % 60)) && $date_cache[$format]['is_short'] !== false && !$forcedate && isset($this->lang['datetime']['AGO']))
|
||||||
{
|
{
|
||||||
return $this->lang(array('datetime', 'AGO'), (int) floor($delta / 60));
|
return $this->lang(array('datetime', 'AGO'), max(0, (int) floor($delta / 60)));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$midnight)
|
if (!$midnight)
|
||||||
|
|
|
@ -220,7 +220,7 @@ function view_message($id, $mode, $folder_id, $msg_id, $folder, $message_row)
|
||||||
'S_SPECIAL_FOLDER' => in_array($folder_id, array(PRIVMSGS_NO_BOX, PRIVMSGS_OUTBOX)),
|
'S_SPECIAL_FOLDER' => in_array($folder_id, array(PRIVMSGS_NO_BOX, PRIVMSGS_OUTBOX)),
|
||||||
|
|
||||||
'U_PRINT_PM' => ($config['print_pm'] && $auth->acl_get('u_pm_printpm')) ? "$url&f=$folder_id&p=" . $message_row['msg_id'] . "&view=print" : '',
|
'U_PRINT_PM' => ($config['print_pm'] && $auth->acl_get('u_pm_printpm')) ? "$url&f=$folder_id&p=" . $message_row['msg_id'] . "&view=print" : '',
|
||||||
'U_FORWARD_PM' => ($config['forward_pm'] && $auth->acl_get('u_pm_forward')) ? "$url&mode=compose&action=forward&f=$folder_id&p=" . $message_row['msg_id'] : '')
|
'U_FORWARD_PM' => ($config['forward_pm'] && $auth->acl_get('u_sendpm') && $auth->acl_get('u_pm_forward')) ? "$url&mode=compose&action=forward&f=$folder_id&p=" . $message_row['msg_id'] : '')
|
||||||
);
|
);
|
||||||
|
|
||||||
// Display not already displayed Attachments for this post, we already parsed them. ;)
|
// Display not already displayed Attachments for this post, we already parsed them. ;)
|
||||||
|
|
|
@ -129,7 +129,7 @@
|
||||||
</tr>
|
</tr>
|
||||||
<!-- BEGINELSE -->
|
<!-- BEGINELSE -->
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="5">{L_NO_ENTRIES}</td>
|
<td colspan="6">{L_NO_ENTRIES}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<!-- END log -->
|
<!-- END log -->
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|
|
@ -66,8 +66,8 @@ function insert_single(user)
|
||||||
<dd><input type="text" name="aim" id="aim" value="{AIM}" class="inputbox" /></dd>
|
<dd><input type="text" name="aim" id="aim" value="{AIM}" class="inputbox" /></dd>
|
||||||
</dl>
|
</dl>
|
||||||
<dl>
|
<dl>
|
||||||
<dt><label for="yim">{L_YIM}:</label></dt>
|
<dt><label for="yahoo">{L_YIM}:</label></dt>
|
||||||
<dd><input type="text" name="yim" id="yim" value="{YIM}" class="inputbox" /></dd>
|
<dd><input type="text" name="yahoo" id="yahoo" value="{YAHOO}" class="inputbox" /></dd>
|
||||||
</dl>
|
</dl>
|
||||||
<dl>
|
<dl>
|
||||||
<dt><label for="msn">{L_MSNM}:</label></dt>
|
<dt><label for="msn">{L_MSNM}:</label></dt>
|
||||||
|
|
Loading…
Add table
Reference in a new issue