mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-11 14:53:15 +09:00
issue 2370 remove setting skin path when use a page module.
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12023 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
faca174dbb
commit
2bb0278425
1 changed files with 10 additions and 2 deletions
|
|
@ -348,9 +348,17 @@
|
|||
$oModuleModel = getModel('module');
|
||||
$skinType = (Mobile::isFromMobilePhone()) ? 'M' : 'P';
|
||||
$skinName = $oModuleModel->getModuleDefaultSkin($this->module, $skinType);
|
||||
if($skinName)
|
||||
if($this->module == 'page')
|
||||
{
|
||||
$this->setTemplatePath(sprintf('%s%s/%s/', $this->module_path, $dir, $skinName));
|
||||
$this->module_info->skin = $skinName;
|
||||
}
|
||||
else
|
||||
{
|
||||
$isTemplatPath = (strpos($this->getTemplatePath(), '/tpl/') !== FALSE);
|
||||
if(!$isTemplatPath)
|
||||
{
|
||||
$this->setTemplatePath(sprintf('%s%s/%s/', $this->module_path, $dir, $skinName));
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue