* fixed displaying premium account days

* function OTS_Account:getPremDays will now return -1 if there's
freePremium configurable enabled on the server
This commit is contained in:
slawkens1
2018-01-08 00:08:17 +01:00
parent 087988dde3
commit 85083f5979
2 changed files with 8 additions and 1 deletions

View File

@@ -51,7 +51,12 @@
<div id="two">
<h1>My account</h1>
<p>Welcome to your account page, {{ account }}<br>
You have {{ account_logged.getPremDays() }} days remaining premium account.</p>
{% if config.lua.freePremium %}
You have unlimited premium account.
{% else %}
You have {{ account_logged.getPremDays() }} days remaining premium account.
{% endif %}
</p>
{# if account dont have recovery key show hint #}
{% if recovery_key is empty %}