mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 19:21:40 +09:00
issue 2370 add a default skin value.
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12102 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
ab3dae8198
commit
8d4f84ec1f
1 changed files with 24 additions and 8 deletions
|
|
@ -1424,21 +1424,37 @@
|
|||
|
||||
if(!$skinName)
|
||||
{
|
||||
$dir = ($skin_type == 'M') ? 'm.skins/' : 'skins';
|
||||
$dir = ($skin_type == 'M') ? 'm.skins/' : 'skins/';
|
||||
$moduleSkinPath = ModuleHandler::getModulePath($module_name).$dir;
|
||||
$skins = FileHandler::readDir($moduleSkinPath);
|
||||
if(count($skins) > 0)
|
||||
|
||||
if(is_dir($moduleSkinPath.'default'))
|
||||
{
|
||||
$skinName = 'default';
|
||||
}
|
||||
else if(is_dir($moduleSkinPath.'xe_default'))
|
||||
{
|
||||
$skinName = 'xe_default';
|
||||
}
|
||||
else
|
||||
{
|
||||
$skins = FileHandler::readDir($moduleSkinPath);
|
||||
if(count($skins) > 0)
|
||||
{
|
||||
$skinName = $skins[0];
|
||||
}
|
||||
else
|
||||
{
|
||||
$skinName = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
if($skinName)
|
||||
{
|
||||
$skinName = $skins[0];
|
||||
$designInfo->module->{$module_name}->{$target} = $skinName;
|
||||
|
||||
$oAdminController = getAdminController('admin');
|
||||
$oAdminController->makeDefaultDesignFile($designInfo, $site_srl);
|
||||
}
|
||||
else
|
||||
{
|
||||
$skinName = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
return $skinName;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue