mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 17:51:40 +09:00
issue 2367 add code that display error message when occurred error in module.
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@11897 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
a239136c2f
commit
afd6f9b5ae
2 changed files with 24 additions and 13 deletions
|
|
@ -134,6 +134,10 @@
|
|||
<value xml:lang="tr"><![CDATA[Burada görüntülenecek içerikler]]></value>
|
||||
<value xml:lang="vi"><![CDATA[Khu vực nội dung sẽ hiển thị.]]></value>
|
||||
</item>
|
||||
<item name="not_support_layout_preview">
|
||||
<value xml:lang="ko"><![CDATA[스킨적용 미리보기를 지원하지 않는 모듈입니다.]]></value>
|
||||
<value xml:lang="en"><![CDATA[Skin preview not available for this module.]]></value>
|
||||
</item>
|
||||
<item name="not_apply_menu">
|
||||
<value xml:lang="ko"><![CDATA[레이아웃 일괄 적용]]></value>
|
||||
<value xml:lang="en"><![CDATA[Apply Layouts En Bloc]]></value>
|
||||
|
|
|
|||
|
|
@ -96,25 +96,32 @@
|
|||
$oModule = $oModuleHandler->procModule();
|
||||
}
|
||||
|
||||
if($skin)
|
||||
if($oModule->toBool())
|
||||
{
|
||||
$skinDir = ($skinType == 'M') ? 'm.skins' : 'skins';
|
||||
$template_path = sprintf("%s%s/%s/",$oModule->module_path, $skinDir, $skin);
|
||||
$oModule->setTemplatePath($template_path);
|
||||
|
||||
if(is_array($skinVars))
|
||||
if($skin)
|
||||
{
|
||||
foreach($skinVars as $key => $val)
|
||||
$skinDir = ($skinType == 'M') ? 'm.skins' : 'skins';
|
||||
$template_path = sprintf("%s%s/%s/",$oModule->module_path, $skinDir, $skin);
|
||||
$oModule->setTemplatePath($template_path);
|
||||
|
||||
if(is_array($skinVars))
|
||||
{
|
||||
$oModule->module_info->{$key} = $val;
|
||||
foreach($skinVars as $key => $val)
|
||||
{
|
||||
$oModule->module_info->{$key} = $val;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
require_once("./classes/display/HTMLDisplayHandler.php");
|
||||
$handler = new HTMLDisplayHandler();
|
||||
$output = $handler->toDoc($oModule);
|
||||
Context::set('content', $output);
|
||||
require_once("./classes/display/HTMLDisplayHandler.php");
|
||||
$handler = new HTMLDisplayHandler();
|
||||
$output = $handler->toDoc($oModule);
|
||||
Context::set('content', $output);
|
||||
}
|
||||
else
|
||||
{
|
||||
Context::set('content', Context::getLang('not_support_layout_preview'));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue