issue 2367 remove outside page, widget page preview.

git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@11904 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
devjin 2012-10-26 02:51:22 +00:00
parent f87451e50f
commit 2783f921df
4 changed files with 15 additions and 1 deletions

View file

@ -341,7 +341,8 @@
// integrate skin information of the module(change to sync skin info with the target module only by seperating its table)
$is_default_skin = ((!Mobile::isFromMobilePhone() && $this->module_info->is_skin_fix == 'N') || (Mobile::isFromMobilePhone() && $this->module_info->is_mskin_fix == 'N'));
if($is_default_skin && $this->module != 'admin' && strpos($this->act, 'Admin') === false)
$usedSkinModule = !($this->module == 'page' && ($this->module_info->page_type == 'OUTSIDE' || $this->module_info->page_type == 'WIDGET'));
if($usedSkinModule && $is_default_skin && $this->module != 'admin' && strpos($this->act, 'Admin') === false)
{
$dir = (Mobile::isFromMobilePhone()) ? 'm.skins' : 'skins';
$oModuleModel = getModel('module');