From 81b3aa9d8260b7bedade15ef395a3ff09be4e1ae Mon Sep 17 00:00:00 2001 From: devjin Date: Thu, 11 Oct 2012 11:06:06 +0000 Subject: [PATCH] issue 2367 update preview when change the layout setting. git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@11666 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- modules/layout/layout.view.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/modules/layout/layout.view.php b/modules/layout/layout.view.php index 654a416d0..1181692fc 100644 --- a/modules/layout/layout.view.php +++ b/modules/layout/layout.view.php @@ -48,6 +48,9 @@ } $layoutSrl = Context::get('layout_srl'); + $layoutVars = Context::get('layout_vars'); + $layoutVars = json_decode($layoutVars); + $moduleSrl = Context::get('module_srl'); $module = Context::get('module'); $mid = Context::get('mid'); @@ -80,6 +83,14 @@ } } + if($layoutVars) + { + foreach($layoutVars as $key => $val) + { + $layoutInfo->{$key} = $val; + } + } + // menu in layout information becomes an argument for Context:: set if($layoutInfo->menu_count) {