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

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12265 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rMalie
2012-01-09 14:02:34 +00:00
parent 81d1c15519
commit 744e398a19
4 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -80,7 +80,7 @@ class HelperCore
public function createTemplate($tpl_name)
{
// Overrides exists?
if ($this->override_folder && file_exists($this->context->smarty->template_dir[0].$this->override_folder.$tpl_name))
if ($this->override_folder && file_exists($this->context->smarty->getTemplateDir(0).$this->override_folder.$tpl_name))
return $this->context->smarty->createTemplate($this->override_folder.$tpl_name);
return $this->context->smarty->createTemplate($this->base_folder.$tpl_name);