From 282aaa6e5b80e3e10717a7c489b71a7b273922d1 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Mon, 10 Aug 2015 10:00:02 +0200 Subject: [PATCH] Load additional static files for modules, really Since we're only processing the config script upon calling Module::hasJs/Css() if no module.js or module.css exists, we need to ensure that it's processed when calling Module::getJS/CssFiles(). refs #9702 --- library/Icinga/Application/Modules/Module.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/library/Icinga/Application/Modules/Module.php b/library/Icinga/Application/Modules/Module.php index 7910bcda7..9ec35b565 100644 --- a/library/Icinga/Application/Modules/Module.php +++ b/library/Icinga/Application/Modules/Module.php @@ -447,6 +447,7 @@ class Module */ public function getCssFiles() { + $this->launchConfigScript(); $files = $this->cssFiles; $files[] = $this->getCssFilename(); return $files; @@ -497,6 +498,7 @@ class Module */ public function getJsFiles() { + $this->launchConfigScript(); $files = $this->jsFiles; $files[] = $this->getJsFilename(); return $files;