Improve theme API version retrieval

pico-3.0-alpha
Daniel Rudolf 6 years ago
parent 87ced8c8bd
commit 6ffbbec689
No known key found for this signature in database
GPG Key ID: A061F02CD8DE4538
  1. 2
      lib/Pico.php

@ -1100,7 +1100,7 @@ class Pico
); );
// theme API version // 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']; $this->themeApiVersion = (int) $themeConfig['api_version'];
} else { } else {
$this->themeApiVersion = 0; $this->themeApiVersion = 0;

Loading…
Cancel
Save