issue 2620 add theme skins to skin lists.

git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@11872 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
devjin 2012-10-24 06:46:37 +00:00
parent 945962fd6a
commit a867fadebd

View file

@ -805,6 +805,26 @@
$skin_list[$skin_name] = $skin_info;
}
if($dir == 'skins')
{
$tmpPath = strtr($path, array('/' => ' '));
$tmpPath = trim($tmpPath);
$module = array_pop(explode(' ', $tmpPath));
$oAdminModel = getAdminModel('admin');
$themesInfo = $oAdminModel->getThemeList();
foreach($themesInfo as $themeName => $info)
{
$skinInfos = $info->skin_infos;
if(isset($skinInfos[$module]) && $skinInfos[$module]->is_theme)
{
$themeSkinInfo = $GLOBALS['__ThemeModuleSkin__'][$module]['skins'][$skinInfos[$module]->name];
$skin_list[$skinInfos[$module]->name] = $themeSkinInfo;
}
}
}
return $skin_list;
}