[-] FO : Do no try to add empty css or js file name
This commit is contained in:
1 parent
1f540553b2
commit
2bb4c6c08a
1 file changed
+4
@@ -327,14 +327,18 @@ abstract class ControllerCore
|
|||||||
foreach ($name as $plugin)
|
foreach ($name as $plugin)
|
||||||
{
|
{
|
||||||
$plugin_path = Media::getJqueryPluginPath($plugin, $folder);
|
$plugin_path = Media::getJqueryPluginPath($plugin, $folder);
|
||||||
|
if(!empty($plugin_path['js']))
|
||||||
$this->addJS($plugin_path['js']);
|
$this->addJS($plugin_path['js']);
|
||||||
|
if(!empty($plugin_path['css']))
|
||||||
$this->addCSS($plugin_path['css']);
|
$this->addCSS($plugin_path['css']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
$plugin_path = Media::getJqueryPluginPath($name, $folder);
|
$plugin_path = Media::getJqueryPluginPath($name, $folder);
|
||||||
|
|
||||||
|
if(!empty($plugin_path['css']))
|
||||||
$this->addCSS($plugin_path['css']);
|
$this->addCSS($plugin_path['css']);
|
||||||
|
if(!empty($plugin_path['js']))
|
||||||
$this->addJS($plugin_path['js']);
|
$this->addJS($plugin_path['js']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user