fix admin template location

This commit is contained in:
franck
2013-06-10 17:01:04 +02:00
parent cc0073c7ae
commit a86122e90d
15 changed files with 2 additions and 9614 deletions

View File

@@ -37,7 +37,7 @@ class Template extends Smarty
$cache_dir = THELIA_LOCAL_DIR . 'cache/smarty/cache';
if (! is_dir($cache_dir)) @mkdir($cache_dir, 0777, true);
$this->setTemplateDir(THELIA_TEMPLATE_DIR . 'admin/');
$this->setTemplateDir(__DIR__.'/template/');
$this->setCompileDir($compile_dir);
$this->setCacheDir($cache_dir);
@@ -83,13 +83,7 @@ class Template extends Smarty
* Too learn more see {@link http://www.smarty.net/docs/en/api.fetch.tpl}
*/
try {
return $this->smarty->fetch($realTemplateName);
} catch (\SmartyException $e) {
throw RuntimeException::createFromPrevious($e, $templateName);
} catch (\ErrorException $e) {
throw RuntimeException::createFromPrevious($e, $templateName);
}
return $this->smarty->fetch($realTemplateName);
}
}
?>