issue 2367 added the skin variables.

git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@11316 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
devjin 2012-09-18 12:27:38 +00:00
parent a9f1bde25e
commit 4b4fc419a8

View file

@ -52,6 +52,7 @@
$module = Context::get('module');
$mid = Context::get('mid');
$skin = Context::get('skin');
$skinVars = Context::get('skin_vars');
// Get the layout information.
if(!$layoutSrl || !$module)
@ -100,6 +101,14 @@
{
$template_path = sprintf("%sskins/%s/",$oModule->module_path, $skin);
$oModule->setTemplatePath($template_path);
if(is_array($skinVars))
{
foreach($skinVars as $key => $val)
{
$oModule->module_info->{$key} = $val;
}
}
}
require_once("./classes/display/HTMLDisplayHandler.php");
$handler = new HTMLDisplayHandler();