* fix a bug.
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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), "<i class='icon-bar-chart'></i> " . $label, '', "class='list-group-item $class'");
|
||||
echo html::a($this->createLink($module, $method, $params), "<i class='icon-bar-chart'></i> " . $label, '', "class='list-group-item $class'");
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
|
||||
Reference in New Issue
Block a user