mirror of
https://github.com/openvk/openvk
synced 2024-11-11 01:19:53 +03:00
Messenger: Do not display the correspondent's login date if it was too long ago
This commit is contained in:
parent
6481831aec
commit
85ca646825
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@
|
|||
|
||||
<a href="/im">{_my_messages}</a> »
|
||||
<a href="{$correspondent->getURL()}">{$correspondent->getCanonicalName()}</a>
|
||||
<div n:if="($online = $correspondent->getOnline()->timestamp()) < time() + 2678400" style="float: right;">
|
||||
<div n:if="($online = $correspondent->getOnline()->timestamp()) + 2505600 > time()" style="float: right;">
|
||||
{var diff = date_diff(date_create(), date_create('@' . $online))}
|
||||
{if 5 >= $diff->i}
|
||||
<span><b>{_online}</b></span>
|
||||
|
|
Loading…
Reference in a new issue