// Update accounting controller due to last commit

This commit is contained in:
vSchoener
2011-11-23 10:57:07 +00:00
parent 022e43c988
commit 5b4fef25e5
3 changed files with 8 additions and 14 deletions
@@ -30,22 +30,15 @@ class AdminAccountingManagementControllerCore extends AdminController
public function __construct()
{
$this->className = 'Accounting';
$this->context = Context::getContext();
parent::__construct();
}
/**
* AdminController::init() override
* @see AdminController::init()
*/
public function init()
public function initContent()
{
$shop = array();
$error = '';
parent::init();
if (count($this->context->shop->getListOfID()) > 1)
$error = $this->l('Please select the shop you want to configure');
else
@@ -75,12 +68,13 @@ class AdminAccountingManagementControllerCore extends AdminController
}
$this->context->smarty->assign(array(
'shop' => $shop,
'shop_details' => $shop,
'error' => $error,
'toolbar_btn' => $this->toolbar_btn,
'title' => $this->l('Accounting Management'),
'table' => 'accounting'
));
parent::initContent();
}
/**