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']),
|
||||
)
|
||||
);
|
||||
}
|
||||
|
@@ -25,7 +25,7 @@ class Controller_Welcome extends Controller_TemplateDefault {
|
||||
if (! Auth::instance()->logged_in()) {
|
||||
Script::add(array('type'=>'stdin','data'=>'
|
||||
$(document).ready(function() {
|
||||
$("#ajxbody").click(function() {$("#ajBODY").load("'.URL::site('/login').'",null,function(x,s,r) {}); return false;});
|
||||
$("#ajxbody").click(function() {$("#ajBODY").load("'.URL::site('login').'",null,function(x,s,r) {}); return false;});
|
||||
$("#ajBODY").ajaxSend(function() {$(this).html(\''.sprintf('%s <span class="ajaxmsg">%s<\/span>...',HTML::image('media/img/ajax-progress.gif',array('alt'=>_('Loading Login').'...')),_('Loading Login')).'\');return true;});
|
||||
});'
|
||||
));
|
||||
|
Reference in New Issue
Block a user