mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 17:21:39 +09:00
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:
parent
a9f1bde25e
commit
4b4fc419a8
1 changed files with 9 additions and 0 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue