[-] BO : #PSFV-600 - Fix bug with Controller::addJqueryUI
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@13805 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -301,14 +301,15 @@ abstract class ControllerCore
|
||||
public function addJqueryUI($component, $theme = 'base', $check_dependencies = true)
|
||||
{
|
||||
$ui_path = array();
|
||||
if (is_array($component))
|
||||
foreach ($component as $ui)
|
||||
$ui_path = Media::getJqueryUIPath($ui, $theme, $check_dependencies);
|
||||
else
|
||||
$ui_path = Media::getJqueryUIPath($component, $theme, $check_dependencies);
|
||||
if (!is_array($component))
|
||||
$component = array($component);
|
||||
|
||||
$this->addCSS($ui_path['css']);
|
||||
$this->addJS($ui_path['js']);
|
||||
foreach ($component as $ui)
|
||||
{
|
||||
$ui_path = Media::getJqueryUIPath($ui, $theme, $check_dependencies);
|
||||
$this->addCSS($ui_path['css']);
|
||||
$this->addJS($ui_path['js']);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user