summaryrefslogtreecommitdiff
path: root/stupid_template_engine.php
diff options
context:
space:
mode:
Diffstat (limited to 'stupid_template_engine.php')
-rw-r--r--stupid_template_engine.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/stupid_template_engine.php b/stupid_template_engine.php
index d88adb4..e84bf67 100644
--- a/stupid_template_engine.php
+++ b/stupid_template_engine.php
@@ -1091,7 +1091,7 @@ class STECore
$tpl = str_replace("\\", "/", $tpl);
if($tpl[0] != "/")
$tpl = $this->cur_tpl_dir . "/" . $tpl;
- $pathex = array_filter(array_slice(explode("/", $tpl), 1), function($s) { return ($s != ".") and (!empty($s)); });
+ $pathex = array_filter(explode("/", $tpl), function($s) { return ($s != ".") and (!empty($s)); });
$pathex = array_merge($pathex);
while(($i = array_search("..", $pathex)) !== False)
{