// Use smarty->getTemplateDir(0) instead of smarty->template_dir[0] (private property)

This commit is contained in:
rMalie
2012-01-09 14:02:34 +00:00
parent 31cde0ca2c
commit 364c763a2a
4 changed files with 6 additions and 6 deletions
@@ -1018,7 +1018,7 @@ class AdminStockManagementControllerCore extends AdminController
$helper = new HelperForm();
// Check if form template has been overriden
if (file_exists($this->context->smarty->template_dir.'/'.$this->tpl_folder.'form.tpl'))
if (file_exists($this->context->smarty->getTemplateDir(0).'/'.$this->tpl_folder.'form.tpl'))
$helper->tpl = $this->tpl_folder.'form.tpl';
$this->setHelperDisplay($helper);