// fix delete var no_back and multiple call method initToolbarTitle

This commit is contained in:
lLefevre
2011-11-18 16:05:46 +00:00
parent e3bc7527fd
commit a39ca69708
5 changed files with 56 additions and 49 deletions
+7 -10
View File
@@ -222,17 +222,14 @@ class AdminFeaturesControllerCore extends AdminController
);
// Default cancel button - like old back link
if (!isset($this->no_back) || $this->no_back == false)
{
$back = Tools::safeOutput(Tools::getValue('back', ''));
if (empty($back))
$back = self::$currentIndex.'&token='.$this->token;
$back = Tools::safeOutput(Tools::getValue('back', ''));
if (empty($back))
$back = self::$currentIndex.'&token='.$this->token;
$this->toolbar_btn['cancel'] = array(
'href' => $back,
'desc' => $this->l('Cancel')
);
}
$this->toolbar_btn['cancel'] = array(
'href' => $back,
'desc' => $this->l('Cancel')
);
break;
default: