aboutsummaryrefslogtreecommitdiffstats
path: root/include/template.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--include/template.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/template.php b/include/template.php
index 14f5d4349..f82937d99 100644
--- a/include/template.php
+++ b/include/template.php
@@ -269,7 +269,8 @@ class Template {
function make_filename($filename)
{
// Check if it's an absolute or relative path.
- if (substr($filename, 0, 1) != '/')
+ // if (substr($filename, 0, 1) != '/')
+ if (preg_match('/^[a-z_]/i', $filename))
{
$filename = $this->root.'/'.$filename;
}