From 9508206dd946a077c6ab4e744e2efa94ce234a13 Mon Sep 17 00:00:00 2001 From: wangyidong Date: Tue, 9 Sep 2014 05:54:09 +0000 Subject: [PATCH] * fix a bug. --- module/common/view/footer.html.php | 2 +- module/report/view/blockreportlist.html.php | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/module/common/view/footer.html.php b/module/common/view/footer.html.php index 001204cf0b..6b6c198d0d 100755 --- a/module/common/view/footer.html.php +++ b/module/common/view/footer.html.php @@ -24,7 +24,7 @@ js::set('onlybody', $onlybody); // set the onlybody var. if(isset($pageJS)) js::execute($pageJS); // load the js for current page. /* Load hook files for current page. */ -$extPath = dirname(dirname(dirname(realpath($viewFile)))) . '/common/ext/view/'; +$extPath = $this->app->getModuleRoot() . '/common/ext/view/'; $extHookRule = $extPath . 'footer.*.hook.php'; $extHookFiles = glob($extHookRule); if($extHookFiles) foreach($extHookFiles as $extHookFile) include $extHookFile; diff --git a/module/report/view/blockreportlist.html.php b/module/report/view/blockreportlist.html.php index 9d0bf2919d..0dfc19309c 100644 --- a/module/report/view/blockreportlist.html.php +++ b/module/report/view/blockreportlist.html.php @@ -6,9 +6,10 @@ ksort($lang->reportList->$submenu->lists); foreach($lang->reportList->$submenu->lists as $list) { - list($label, $module, $method) = explode('|', $list); + $list .= '|'; + list($label, $module, $method, $params) = explode('|', $list); $class = $label == $title ? ' active' : ''; - echo html::a($this->createLink($module, $method), " " . $label, '', "class='list-group-item $class'"); + echo html::a($this->createLink($module, $method, $params), " " . $label, '', "class='list-group-item $class'"); } ?>