From 4b4fc419a8f8eed4d493424e3bae14851c6161b0 Mon Sep 17 00:00:00 2001 From: devjin Date: Tue, 18 Sep 2012 12:27:38 +0000 Subject: [PATCH] issue 2367 added the skin variables. git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@11316 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- modules/layout/layout.view.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/modules/layout/layout.view.php b/modules/layout/layout.view.php index f6f20b18e..d6bb27482 100644 --- a/modules/layout/layout.view.php +++ b/modules/layout/layout.view.php @@ -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();