mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 11:11:39 +09:00
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:
parent
ee7ce0e0ba
commit
691a185d75
1 changed files with 10 additions and 9 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue