fix crash on theme preview
This commit is contained in:
parent
374c8f03d4
commit
75adf40c3d
1 changed files with 4 additions and 0 deletions
|
@ -72,6 +72,10 @@ class Frontend extends Process
|
||||||
|
|
||||||
public static function switchTheme(string $theme): void
|
public static function switchTheme(string $theme): void
|
||||||
{
|
{
|
||||||
|
if (dcCore::app()->blog->settings->get('system')->get('theme') == $theme) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (My::settings()->get('mt_exclude')) {
|
if (My::settings()->get('mt_exclude')) {
|
||||||
if (in_array($theme, explode('/', My::settings()->get('mt_exclude')))) {
|
if (in_array($theme, explode('/', My::settings()->get('mt_exclude')))) {
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue