mirror of
https://github.com/openvk/openvk
synced 2024-11-11 01:19:53 +03:00
Themes: Hot fix for unauthorized users
This commit is contained in:
parent
1dff89972e
commit
44893ff40f
1 changed files with 1 additions and 1 deletions
|
@ -234,7 +234,7 @@ abstract class OpenVKPresenter extends SimplePresenter
|
|||
$this->template->theme = Themepacks::i()[Session::i()->get("_tempTheme", "ovk")];
|
||||
else if($this->requestParam("themePreview"))
|
||||
$this->template->theme = Themepacks::i()[$this->requestParam("themePreview")];
|
||||
else if($this->user->identity->getTheme())
|
||||
else if($this->user->identity !== null && $this->user->identity->getTheme())
|
||||
$this->template->theme = $this->user->identity->getTheme();
|
||||
|
||||
// Знаю, каша ебаная, целестора рефактор всё равно сделает :)))
|
||||
|
|
Loading…
Reference in a new issue