aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/template.php
diff options
context:
space:
mode:
authorNils Adermann <naderman@naderman.de>2006-05-07 21:44:23 +0000
committerNils Adermann <naderman@naderman.de>2006-05-07 21:44:23 +0000
commitf83b7e1581daf1911bfe9e9c69ff9961ef2a184d (patch)
tree0a7d633e290c8f54830843360b520e27151ca242 /phpBB/includes/template.php
parent870cb6efd07f8f7034b1b5221b892c797dcde387 (diff)
downloadforums-f83b7e1581daf1911bfe9e9c69ff9961ef2a184d.tar
forums-f83b7e1581daf1911bfe9e9c69ff9961ef2a184d.tar.gz
forums-f83b7e1581daf1911bfe9e9c69ff9961ef2a184d.tar.bz2
forums-f83b7e1581daf1911bfe9e9c69ff9961ef2a184d.tar.xz
forums-f83b7e1581daf1911bfe9e9c69ff9961ef2a184d.zip
- added the template editor (doesn't use a hardcoded list of template filenames for categorisation anymore)
- fix some bugs related to storing template files in the database - allow templates stored in subfolders of the /styles/name/template/ folder git-svn-id: file:///svn/phpbb/trunk@5894 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/template.php')
-rw-r--r--phpBB/includes/template.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/template.php b/phpBB/includes/template.php
index de54eff7ec..3ca3a8acbd 100644
--- a/phpBB/includes/template.php
+++ b/phpBB/includes/template.php
@@ -153,7 +153,7 @@ class template
{
global $user, $phpEx, $config;
- $filename = $this->cachepath . $this->filename[$handle] . '.' . $phpEx;
+ $filename = $this->cachepath . str_replace('/', '.', $this->filename[$handle]) . '.' . $phpEx;
$recompile = (($config['load_tplcompile'] && @filemtime($filename) < filemtime($this->files[$handle])) || !file_exists($filename)) ? true : false;
@@ -222,7 +222,7 @@ class template
else
{
// Only bother compiling if it doesn't already exist
- if (!file_exists($this->cachepath . $row['template_filename'] . '.' . $phpEx))
+ if (!file_exists($this->cachepath . str_replace('/', '.', $row['template_filename']) . '.' . $phpEx))
{
$this->filename[$row['template_filename']] = $row['template_filename'];
$compile->compile_write($row['template_filename'], $compile->compile(trim($row['template_data'])));