fixed communication theme shkin error

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9455 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
devjin 2011-09-30 08:03:33 +00:00
parent 8fd4b58bec
commit f94ce148c7

View file

@ -18,7 +18,12 @@
Context::set('communication_config', $this->communication_config);
$tpl_path = sprintf('%sskins/%s', $this->module_path, $skin);
$config_parse = explode('.', $skin);
if (count($config_parse) > 1){
$tpl_path = sprintf('./themes/%s/modules/communication/', $config_parse[0]);
}else{
$tpl_path = sprintf('%sskins/%s', $this->module_path, $skin);
}
$this->setTemplatePath($tpl_path);
}