mirror of
https://github.com/openvk/openvk
synced 2024-11-11 01:19:53 +03:00
User: bug fix with birthday
This commit is contained in:
parent
f611c89f13
commit
20ca453e34
1 changed files with 4 additions and 2 deletions
|
@ -384,10 +384,12 @@
|
||||||
<td class="label"><span class="nobold">{_"politViews"}:</span></td>
|
<td class="label"><span class="nobold">{_"politViews"}:</span></td>
|
||||||
<td class="data">{var $pviews = $user->getPoliticalViews()}{_"politViews_$pviews"}</td>
|
<td class="data">{var $pviews = $user->getPoliticalViews()}{_"politViews_$pviews"}</td>
|
||||||
</tr>
|
</tr>
|
||||||
{if $user->getBirthday() != 0}
|
{if $user->getBirthday() > 0}
|
||||||
<tr>
|
<tr>
|
||||||
<td class="label"><span class="nobold">{_"birth_date"}:</span></td>
|
<td class="label"><span class="nobold">{_"birth_date"}:</span></td>
|
||||||
<td class="data">{date('d F Y',$user->getBirthday())}, {date('Y') - date('Y', $user->getBirthday())} {_"years"}</td>
|
<td class="data">{date('d F Y',$user->getBirthday())},
|
||||||
|
{date('m d') >= date('m d', $user->getBirthday()) ? date('Y') - date('Y', $user->getBirthday()) :
|
||||||
|
(date('m d') < date('m d', $user->getBirthday()) ? date('Y') - date('Y', $user->getBirthday()) - 1)} {_"years"}</td>
|
||||||
</tr>
|
</tr>
|
||||||
{/if}
|
{/if}
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|
Loading…
Reference in a new issue