Consistent use of URL::site()
This commit is contained in:
@@ -57,9 +57,9 @@ class Controller_Tree extends Controller_lnApp_Tree {
|
||||
foreach ($methods as $id => $mmo) {
|
||||
if (preg_match('/_/',$mmo->name)) {
|
||||
list($mode,$action) = explode('_',$mmo->name);
|
||||
$url = URL::site(sprintf('/%s/%s/%s',$mode,$mmo->module->name,$action));
|
||||
$url = URL::site(sprintf('%s/%s/%s',$mode,$mmo->module->name,$action));
|
||||
} else {
|
||||
$url = URL::site(sprintf('/%s/%s',$mmo->module->name,$mmo->name));
|
||||
$url = URL::site(sprintf('%s/%s',$mmo->module->name,$mmo->name));
|
||||
}
|
||||
|
||||
array_push($data,array(
|
||||
@@ -81,7 +81,7 @@ class Controller_Tree extends Controller_lnApp_Tree {
|
||||
'attr'=>array('id'=>sprintf('B_%s',$branch['id'])),
|
||||
'state'=>$branch['state'],
|
||||
'data'=>array('title'=>$branch['name']),
|
||||
'attr'=>array('id'=>sprintf('N_%s',$branch['id']),'href'=>empty($branch['attr_href']) ? URL::site(sprintf('/%s/menu',$branch['name'])) : $branch['attr_href']),
|
||||
'attr'=>array('id'=>sprintf('N_%s',$branch['id']),'href'=>empty($branch['attr_href']) ? URL::site(sprintf('%s/menu',$branch['name'])) : $branch['attr_href']),
|
||||
)
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user