diff options
Diffstat (limited to 'include/template.class.php')
-rw-r--r-- | include/template.class.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/template.class.php b/include/template.class.php index 386f3123a..14ef8653b 100644 --- a/include/template.class.php +++ b/include/template.class.php @@ -199,7 +199,7 @@ class Template { return false; } - if ((stripos(implode('/',array_flip($_GET)), $param) > 0 or $param == 'N/A') + if ((stripos(implode('/',array_keys($_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)) |