mirror of
https://github.com/openvk/openvk
synced 2024-12-23 00:51:03 +03:00
Fix gifts template (stolen from #512)
This commit is contained in:
parent
e48b696aeb
commit
f57a470c5d
1 changed files with 3 additions and 0 deletions
|
@ -198,6 +198,9 @@ abstract class OpenVKPresenter extends SimplePresenter
|
||||||
{
|
{
|
||||||
$user = Authenticator::i()->getUser();
|
$user = Authenticator::i()->getUser();
|
||||||
|
|
||||||
|
if(!$this->template)
|
||||||
|
$this->template = new \stdClass;
|
||||||
|
|
||||||
$this->template->isXmas = intval(date('d')) >= 1 && date('m') == 12 || intval(date('d')) <= 15 && date('m') == 1 ? true : false;
|
$this->template->isXmas = intval(date('d')) >= 1 && date('m') == 12 || intval(date('d')) <= 15 && date('m') == 1 ? true : false;
|
||||||
$this->template->isTimezoned = Session::i()->get("_timezoneOffset");
|
$this->template->isTimezoned = Session::i()->get("_timezoneOffset");
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue