Themepacks: Adapt the layout to support xmas.css stylesheet

and added some info about why the theme was been skipped
This commit is contained in:
veselcraft 2021-12-02 15:00:15 +03:00
parent 1735d1401f
commit 5f9b36de5f
No known key found for this signature in database
GPG key ID: AED66BC1AC628A4E
2 changed files with 2 additions and 2 deletions

View file

@ -30,7 +30,7 @@
<link rel="stylesheet" href="/themepack/{$theme->getId()}/{$theme->getVersion()}/stylesheet/styles.css" />
{if $isXmas}
<link rel="stylesheet" href="/themepack/{$theme->getId()}/{$theme->getVersion()}/stylesheet/xmas.css" />
<link rel="stylesheet" href="/themepack/{$theme->getId()}/{$theme->getVersion()}/resource/xmas.css" />
{/if}
{else}
{css "css/style.css"}

View file

@ -22,7 +22,7 @@ class Themepacks implements \ArrayAccess
else
$this->loadedThemepacks[$tid] = $theme;
} catch(\Exception $e) {
trigger_error("Could not load theme at $themeDir, skipping...", E_USER_WARNING);
trigger_error("Could not load theme at $themeDir. Exception: $e", E_USER_WARNING);
}
}
}