Skip to content

Commit

Permalink
Fix gifts template (stolen from #512)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrilyew committed Oct 28, 2023
1 parent e48b696 commit f57a470
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Web/Presenters/OpenVKPresenter.php
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,9 @@ function onStartup(): void
{
$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->isTimezoned = Session::i()->get("_timezoneOffset");

Expand Down

0 comments on commit f57a470

Please sign in to comment.