fixed error in theme member skin

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9416 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
devjin 2011-09-28 11:36:51 +00:00
parent ee7ce0e0ba
commit 691a185d75

View file

@ -15,16 +15,17 @@ class HTMLDisplayHandler {
else
$skin = $oModule->module_config->skin;
if ($skin && is_string($skin)){
$theme_skin = explode('.', $skin);
if (count($theme_skin) == 2)
$template_path = sprintf('./themes/%s/modules/%s/', $theme_skin[0], $theme_skin[1]);
else
if(Context::get('module')!='admin' && strpos(Context::get('act'),'Admin') === false){
if ($skin && is_string($skin)){
$theme_skin = explode('.', $skin);
if (count($theme_skin) == 2)
$template_path = sprintf('./themes/%s/modules/%s/', $theme_skin[0], $theme_skin[1]);
else
$template_path = $oModule->getTemplatePath();
}else{
$template_path = $oModule->getTemplatePath();
}else{
$template_path = $oModule->getTemplatePath();
}
}
}else $template_path = $oModule->getTemplatePath();
$tpl_file = $oModule->getTemplateFile();
$output = $oTemplate->compile($template_path, $tpl_file);