[-] BO : fixed bug #PSCFV-3226
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@16759 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
1 parent
8479ef58ee
commit
e25bf37349
1 file changed
+9
-1
@@ -288,7 +288,7 @@ class AdminModulesPositionsControllerCore extends AdminController
|
|||||||
'url_show_invisible' => self::$currentIndex.'&token='.$this->token.'&show_modules='.(int)Tools::getValue('show_modules').'&hook_position=',
|
'url_show_invisible' => self::$currentIndex.'&token='.$this->token.'&show_modules='.(int)Tools::getValue('show_modules').'&hook_position=',
|
||||||
'hook_position' => Tools::getValue('hook_position'),
|
'hook_position' => Tools::getValue('hook_position'),
|
||||||
'live_edit' => Shop::isFeatureActive() && Shop::getContext() != Shop::CONTEXT_SHOP,
|
'live_edit' => Shop::isFeatureActive() && Shop::getContext() != Shop::CONTEXT_SHOP,
|
||||||
'url_live_edit' => $this->context->link->getPageLink('index.php', true, null, $live_edit_params),
|
'url_live_edit' => $this->getLiveEditUrl($live_edit_params),
|
||||||
'display_key' => $this->display_key,
|
'display_key' => $this->display_key,
|
||||||
'hooks' => $hooks,
|
'hooks' => $hooks,
|
||||||
'url_submit' => self::$currentIndex.'&token='.$this->token,
|
'url_submit' => self::$currentIndex.'&token='.$this->token,
|
||||||
@@ -298,6 +298,14 @@ class AdminModulesPositionsControllerCore extends AdminController
|
|||||||
return $this->createTemplate('list_modules.tpl')->fetch();
|
return $this->createTemplate('list_modules.tpl')->fetch();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getLiveEditUrl($live_edit_params)
|
||||||
|
{
|
||||||
|
$url = $this->context->shop->getBaseURL().Dispatcher::getInstance()->createUrl('index', (int)$this->context->language->id, $live_edit_params);
|
||||||
|
if (Configuration::get('PS_REWRITING_SETTINGS'))
|
||||||
|
$url = str_replace('index.php', '', $url);
|
||||||
|
return $url;
|
||||||
|
}
|
||||||
|
|
||||||
public function renderForm()
|
public function renderForm()
|
||||||
{
|
{
|
||||||
// Init toolbar
|
// Init toolbar
|
||||||
|
|||||||
Reference in new issue
Block a user