Check theme dir before trying to load theme
This commit is contained in:
parent
dffaa012f7
commit
62aa4dbc7e
1 changed files with 6 additions and 0 deletions
|
@ -1085,6 +1085,12 @@ class Pico
|
|||
*/
|
||||
protected function loadTheme()
|
||||
{
|
||||
if (!is_dir($this->getThemesDir() . $this->getTheme())) {
|
||||
throw new \RuntimeException(
|
||||
'Couldn\'t load theme "' . $this->theme . '": No such theme directory'
|
||||
);
|
||||
}
|
||||
|
||||
$themeConfig = [];
|
||||
|
||||
// load theme config from pico-theme.yml
|
||||
|
|
Loading…
Reference in a new issue