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'");
}
?>