mirror of
https://github.com/friendica/friendica
synced 2025-04-23 12:30:10 +00:00
App::get_baseurl is now replaced with System::baseUrl
This commit is contained in:
parent
3c24bed412
commit
5adfeb0bd5
134 changed files with 603 additions and 624 deletions
|
@ -10,11 +10,11 @@ function home_init(App $a) {
|
|||
call_hooks('home_init',$ret);
|
||||
|
||||
if (local_user() && ($a->user['nickname'])) {
|
||||
goaway(App::get_baseurl()."/network");
|
||||
goaway(System::baseUrl()."/network");
|
||||
}
|
||||
|
||||
if (strlen(get_config('system','singleuser'))) {
|
||||
goaway(App::get_baseurl()."/profile/" . get_config('system','singleuser'));
|
||||
goaway(System::baseUrl()."/profile/" . get_config('system','singleuser'));
|
||||
}
|
||||
|
||||
}}
|
||||
|
@ -34,7 +34,7 @@ function home_content(App $a) {
|
|||
/// @TODO No absolute path used, maybe risky (security)
|
||||
if (file_exists('home.html')) {
|
||||
if (file_exists('home.css')) {
|
||||
$a->page['htmlhead'] .= '<link rel="stylesheet" type="text/css" href="'.App::get_baseurl().'/home.css'.'" media="all" />';
|
||||
$a->page['htmlhead'] .= '<link rel="stylesheet" type="text/css" href="'.System::baseUrl().'/home.css'.'" media="all" />';
|
||||
}
|
||||
|
||||
$o .= file_get_contents('home.html');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue