Permalink
Browse files

Add "tags" parameter for template extensions

git-svn-id: http://piwigo.org/svn/trunk@3207 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information...
patdenice
patdenice committed Mar 16, 2009
1 parent 7250fc9 commit ed068b08c8b3739c4fddb313b8895b7c3a1efae0
Showing with 4 additions and 2 deletions.
  1. +3 −1 admin/extend_for_templates.php
  2. +1 −1 include/template.class.php
@@ -60,7 +60,9 @@
'posted-monthly-calendar',
'search',
'flat',
'list',); /* <=> Random */
'list', /* <=> Random */
'tags',
);
$query = '
SELECT permalink
FROM '.CATEGORIES_TABLE.'
@@ -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))

0 comments on commit ed068b0

Please sign in to comment.