mirror of
https://github.com/friendica/friendica
synced 2025-04-25 07:10:11 +00:00
*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:
parent
c43389f79a
commit
884f44ce94
108 changed files with 407 additions and 437 deletions
|
@ -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');}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue