From 36264d3f6e6583db8c8289460583c707922033bd Mon Sep 17 00:00:00 2001 From: Daku Date: Wed, 11 May 2016 16:50:09 +0100 Subject: [PATCH] stop caching css/js from disabled exts --- core/page.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/page.class.php b/core/page.class.php index 596871b0..011f7025 100644 --- a/core/page.class.php +++ b/core/page.class.php @@ -365,7 +365,7 @@ class Page { $this->add_html_header("", 43); $css_latest = $config_latest; - $css_files = array_merge(zglob("lib/shimmie.css"), zglob("ext/*/style.css"), zglob("themes/$theme_name/style.css")); + $css_files = array_merge(zglob("lib/shimmie.css"), zglob("ext/{".ENABLED_EXTS."}/style.css"), zglob("themes/$theme_name/style.css")); foreach($css_files as $css) { $css_latest = max($css_latest, filemtime($css)); } @@ -402,7 +402,7 @@ class Page { $this->add_html_header("", 45); $js_latest = $config_latest; - $js_files = array_merge(zglob("lib/shimmie.js"), zglob("ext/*/script.js"), zglob("themes/$theme_name/script.js")); + $js_files = array_merge(zglob("lib/shimmie.js"), zglob("ext/{".ENABLED_EXTS."}/script.js"), zglob("themes/$theme_name/script.js")); foreach($js_files as $js) { $js_latest = max($js_latest, filemtime($js)); }