request 290: replace function get_themes name to avoid redeclaration from

Wordpress in jillij template.


git-svn-id: http://piwigo.org/svn/trunk@1048 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
plegall
2006-02-20 22:14:24 +00:00
parent d62ce73760
commit 16034a592a
4 changed files with 21 additions and 21 deletions
+6 -8
View File
@@ -546,19 +546,17 @@ function url_is_remote($url)
}
/**
* returns available templates/themes
* returns available template/theme
*/
function get_templates()
{
return get_dirs(PHPWG_ROOT_PATH.'theme');
}
function get_themes()
function get_pwg_themes()
{
$themes = array();
foreach (get_dirs(PHPWG_ROOT_PATH.'template') as $template)
$template_dir = PHPWG_ROOT_PATH.'template';
foreach (get_dirs($template_dir) as $template)
{
foreach (get_dirs(PHPWG_ROOT_PATH.'template/'.$template.'/theme') as $theme)
foreach (get_dirs($template_dir.'/'.$template.'/theme') as $theme)
{
array_push($themes, $template.'/'.$theme);
}