mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-30 01:04:09 +02:00
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
This commit is contained in:
parent
aa3cc9847d
commit
282aaa6e5b
@ -447,6 +447,7 @@ class Module
|
|||||||
*/
|
*/
|
||||||
public function getCssFiles()
|
public function getCssFiles()
|
||||||
{
|
{
|
||||||
|
$this->launchConfigScript();
|
||||||
$files = $this->cssFiles;
|
$files = $this->cssFiles;
|
||||||
$files[] = $this->getCssFilename();
|
$files[] = $this->getCssFilename();
|
||||||
return $files;
|
return $files;
|
||||||
@ -497,6 +498,7 @@ class Module
|
|||||||
*/
|
*/
|
||||||
public function getJsFiles()
|
public function getJsFiles()
|
||||||
{
|
{
|
||||||
|
$this->launchConfigScript();
|
||||||
$files = $this->jsFiles;
|
$files = $this->jsFiles;
|
||||||
$files[] = $this->getJsFilename();
|
$files[] = $this->getJsFilename();
|
||||||
return $files;
|
return $files;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user