*much* more usage of App::get_baseurl() instead of $a->get_baseurl() (coding convention applied)

Signed-off-by: Roland Häder <roland@mxchange.org>
This commit is contained in:
Roland Häder 2016-12-19 14:26:13 +01:00
parent c43389f79a
commit 884f44ce94
108 changed files with 407 additions and 437 deletions

View file

@ -7,11 +7,11 @@ function home_init(&$a) {
call_hooks('home_init',$ret);
if(local_user() && ($a->user['nickname']))
goaway($a->get_baseurl()."/network");
//goaway($a->get_baseurl()."/profile/".$a->user['nickname']);
goaway(App::get_baseurl()."/network");
//goaway(App::get_baseurl()."/profile/".$a->user['nickname']);
if(strlen(get_config('system','singleuser')))
goaway($a->get_baseurl()."/profile/" . get_config('system','singleuser'));
goaway(App::get_baseurl()."/profile/" . get_config('system','singleuser'));
}}
@ -28,7 +28,7 @@ function home_content(&$a) {
if(file_exists('home.html')){
if(file_exists('home.css')){
$a->page['htmlhead'] .= '<link rel="stylesheet" type="text/css" href="'.$a->get_baseurl().'/home.css'.'" media="all" />';}
$a->page['htmlhead'] .= '<link rel="stylesheet" type="text/css" href="'.App::get_baseurl().'/home.css'.'" media="all" />';}
$o .= file_get_contents('home.html');}