add identifier choice

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9110 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
devjin 2011-09-08 06:06:17 +00:00
parent c7b35ff5c7
commit af4c27f832
12 changed files with 89 additions and 14 deletions

View file

@ -15,7 +15,7 @@ class HTMLDisplayHandler {
else
$skin = $oModule->module_config->skin;
if ($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]);
@ -24,6 +24,7 @@ class HTMLDisplayHandler {
}else{
$template_path = $oModule->getTemplatePath();
}
$tpl_file = $oModule->getTemplateFile();
$output = $oTemplate->compile($template_path, $tpl_file);