mirror of
https://github.com/openvk/openvk
synced 2024-11-11 01:19:53 +03:00
Fix online in messages (#354)
This commit is contained in:
parent
8edebcb0d5
commit
afa1d7e71c
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@
|
||||||
<div n:if="($online = $correspondent->getOnline()->timestamp()) < time() + 2678400" style="float: right;">
|
<div n:if="($online = $correspondent->getOnline()->timestamp()) < time() + 2678400" style="float: right;">
|
||||||
{var diff = date_diff(date_create(), date_create('@' . $online))}
|
{var diff = date_diff(date_create(), date_create('@' . $online))}
|
||||||
{if 5 >= $diff->i}
|
{if 5 >= $diff->i}
|
||||||
<span><b>Online</b></span>
|
<span><b>{_online}</b></span>
|
||||||
{else}
|
{else}
|
||||||
<span>{$correspondent->isFemale() ? "заходила" : "заходил"} {$correspondent->getOnline()}</span>
|
<span>{$correspondent->isFemale() ? "заходила" : "заходил"} {$correspondent->getOnline()}</span>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
Loading…
Reference in a new issue