From b018b1a189f4f212f3e39b171798fa30dd81c188 Mon Sep 17 00:00:00 2001 From: Jeongkyu Shin Date: Sat, 31 Jan 2015 21:54:28 +0900 Subject: [PATCH] refs #1067 : modified - blog.fx (completed.) --- library/model/blog.fx.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/library/model/blog.fx.php b/library/model/blog.fx.php index 3de422e30..b094044c1 100644 --- a/library/model/blog.fx.php +++ b/library/model/blog.fx.php @@ -3,12 +3,12 @@ /// All rights reserved. Licensed under the GPL. /// See the GNU General Public License for more details. (/documents/LICENSE, /documents/COPYRIGHT) -$fxList = array(); function setDetailPanel($id,$type = 'section',$string = '') { - global $fxList; - $context = Model_Context::getInstance(); + $context = Model_Context::getInstance(); // if(in_array($fxList,$id)) return ''; + $fxList = $context->getProperty('blog.fxList'); array_push($fxList, $id); + $hrefVal = ''; switch($type) { case 'button': @@ -35,12 +35,13 @@ function setDetailPanel($id,$type = 'section',$string = '') { } break; } + $context->setProperty('blog.fxList',$fxList); return $hrefVal; } function activateDetailPanelJS() { - global $fxList; $context = Model_Context::getInstance(); + $fxList = $context->getProperty('blog.fxList'); $jsVal = ''; if(!empty($fxList) && ($context->getProperty('service.interface') == 'simple')) { $jsVal = "jQuery(document).ready(function(jQuery) {".CRLF;