aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpatdenice <patdenice@piwigo.org>2009-03-16 17:51:47 +0000
committerpatdenice <patdenice@piwigo.org>2009-03-16 17:51:47 +0000
commited068b08c8b3739c4fddb313b8895b7c3a1efae0 (patch)
treec5d6cb4ccaed4debdf81a6d2b7feae20ccfaa001
parent7250fc9b27f966821d30702c0cf7058bead05f60 (diff)
Add "tags" parameter for template extensions
git-svn-id: http://piwigo.org/svn/trunk@3207 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--admin/extend_for_templates.php4
-rw-r--r--include/template.class.php2
2 files changed, 4 insertions, 2 deletions
diff --git a/admin/extend_for_templates.php b/admin/extend_for_templates.php
index 2f3bbc92b..44ea50961 100644
--- a/admin/extend_for_templates.php
+++ b/admin/extend_for_templates.php
@@ -60,7 +60,9 @@ $relevant_parameters = array(
'posted-monthly-calendar',
'search',
'flat',
- 'list',); /* <=> Random */
+ 'list', /* <=> Random */
+ 'tags',
+ );
$query = '
SELECT permalink
FROM '.CATEGORIES_TABLE.'
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))