Improve theme API version retrieval
This commit is contained in:
parent
87ced8c8bd
commit
6ffbbec689
1 changed files with 1 additions and 1 deletions
|
@ -1100,7 +1100,7 @@ class Pico
|
|||
);
|
||||
|
||||
// theme API version
|
||||
if (preg_match('/^[0-9]+$/', $themeConfig['api_version'])) {
|
||||
if (is_int($themeConfig['api_version']) || preg_match('/^[0-9]+$/', $themeConfig['api_version'])) {
|
||||
$this->themeApiVersion = (int) $themeConfig['api_version'];
|
||||
} else {
|
||||
$this->themeApiVersion = 0;
|
||||
|
|
Loading…
Reference in a new issue