aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Render/Theme.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2022-01-13 10:18:53 +0000
committerMario <mario@mariovavti.com>2022-01-13 10:18:53 +0000
commit57ff6674384e7d6a18f505fdf51232f42b75cc72 (patch)
tree50b069bbe2fccd0b36643463600c50b3fb3dfee1 /Zotlabs/Render/Theme.php
parentabe3039926dd388108e620148868880cb1da3fa3 (diff)
downloadvolse-hubzilla-57ff6674384e7d6a18f505fdf51232f42b75cc72.tar.gz
volse-hubzilla-57ff6674384e7d6a18f505fdf51232f42b75cc72.tar.bz2
volse-hubzilla-57ff6674384e7d6a18f505fdf51232f42b75cc72.zip
pwa improvements according to lighthouse
Diffstat (limited to 'Zotlabs/Render/Theme.php')
-rw-r--r--Zotlabs/Render/Theme.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/Zotlabs/Render/Theme.php b/Zotlabs/Render/Theme.php
index 0eebba1ba..2e6ca0c32 100644
--- a/Zotlabs/Render/Theme.php
+++ b/Zotlabs/Render/Theme.php
@@ -60,14 +60,16 @@ class Theme {
// Allow theme selection of the form 'theme_name:schema_name'
$themepair = explode(':', $chosen_theme);
-
// Check if $chosen_theme is compatible with core. If not fall back to default
$info = get_theme_info($themepair[0]);
+
$compatible = check_plugin_versions($info);
if(!$compatible) {
$chosen_theme = '';
}
+ App::$theme_info = $info;
+
if($chosen_theme && (file_exists('view/theme/' . $themepair[0] . '/css/style.css') || file_exists('view/theme/' . $themepair[0] . '/php/style.php'))) {
return($themepair);
}