issue 2369 add skin_type.

git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@11782 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
devjin 2012-10-18 12:03:34 +00:00
parent 4cf9504350
commit 3ea7cda316

View file

@ -776,8 +776,12 @@
public function getModuleSkinInfoList()
{
$module = Context::get('module_name');
$skinType = Context::get('skin_type');
$path = ModuleHandler::getModulePath($module);
$skin_list = $this->getSkins($path, 'skins');
$dir = ($skinType == 'M') ? 'm.skins' : 'skins';
$skin_list = $this->getSkins($path, $dir);
$this->add('skin_info_list', $skin_list);
}