Skip to content

Commit

Permalink
Add "tags" parameter for template extensions
Browse files Browse the repository at this point in the history
git-svn-id: http://piwigo.org/svn/trunk@3207 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information
patdenice committed Mar 16, 2009
1 parent 7250fc9 commit ed068b0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion admin/extend_for_templates.php
Expand Up @@ -60,7 +60,9 @@
'posted-monthly-calendar',
'search',
'flat',
'list',); /* <=> Random */
'list', /* <=> Random */
'tags',
);
$query = '
SELECT permalink
FROM '.CATEGORIES_TABLE.'
Expand Down
2 changes: 1 addition & 1 deletion include/template.class.php
Expand Up @@ -199,7 +199,7 @@ function set_extents($filename_array, $dir='', $overwrite=true)
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))
Expand Down

0 comments on commit ed068b0

Please sign in to comment.