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()
|
||||
{
|
||||
$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;
|
||||
|
|
Loading…
Reference in New Issue