From ed068b08c8b3739c4fddb313b8895b7c3a1efae0 Mon Sep 17 00:00:00 2001 From: patdenice Date: Mon, 16 Mar 2009 17:51:47 +0000 Subject: Add "tags" parameter for template extensions git-svn-id: http://piwigo.org/svn/trunk@3207 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/template.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/template.class.php b/include/template.class.php index 14ef8653b..be9aeda97 100644 --- a/include/template.class.php +++ b/include/template.class.php @@ -199,7 +199,7 @@ class Template { return false; } - if ((stripos(implode('/',array_keys($_GET)), $param) > 0 or $param == 'N/A') + if ((stripos(implode('',array_keys($_GET)), '/'.$param) !== false 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)) -- cgit v1.2.3