aboutsummaryrefslogtreecommitdiffstats
path: root/include/template.class.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--include/template.class.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/template.class.php b/include/template.class.php
index e641d3cb8..86d5a1062 100644
--- a/include/template.class.php
+++ b/include/template.class.php
@@ -186,11 +186,13 @@ class Template {
{
$handle = $value[0];
$param = $value[1];
+ $tpl = $value[2];
}
elseif (is_string($value))
{
$handle = $value;
$param = 'N/A';
+ $tpl = 'N/A';
}
else
{
@@ -198,6 +200,7 @@ class Template {
}
if ((stripos(implode('/',array_flip($_GET)), $param) > 0 or $param == 'N/A')
+ and (preg_match('/'.preg_quote($tpl,'/').'$/', $this->get_template_dir()) or $tpl == 'N/A')
and (!isset($this->extents[$handle]) or $overwrite)
and file_exists($dir . $filename))
{