mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-26 11:19:55 +03:00
Add "tags" parameter for template extensions
git-svn-id: http://piwigo.org/svn/trunk@3207 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
7250fc9b27
commit
ed068b08c8
2 changed files with 4 additions and 2 deletions
|
@ -60,7 +60,9 @@ $relevant_parameters = array(
|
|||
'posted-monthly-calendar',
|
||||
'search',
|
||||
'flat',
|
||||
'list',); /* <=> Random */
|
||||
'list', /* <=> Random */
|
||||
'tags',
|
||||
);
|
||||
$query = '
|
||||
SELECT permalink
|
||||
FROM '.CATEGORIES_TABLE.'
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue