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);
}
}
?>

View File

@@ -1,2 +0,0 @@
order deny,allow
deny from all

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@@ -1,6 +0,0 @@
{* Include required JS files *}
<script src="http://code.jquery.com/jquery.js"></script>
<script src="bootstrap/js/bootstrap.min.js"></script>
{* TODO allow modules to include JS here *}
</body>
</html>

View File

@@ -1,11 +0,0 @@
<!DOCTYPE html>
<html lang="{$lang}">
<head>
<title>{$page_title}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="bootstrap/css/bootstrap-responsive.min.css" rel="stylesheet" media="screen">
{* TODO allow modules to include CSS here *}
</head>
<body>

File diff suppressed because one or more lines are too long

View File

@@ -1 +0,0 @@
Hio, I'm the default template.