mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-21 00:53:04 +02:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user