X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fhome.php;h=dc571aaabd393aef51ee923e28c27b8d21e23d01;hb=071b1c038addc94178eff22a47f0bf126b4a9d28;hp=3490c4faea52dad7712e933d0d484aa05e3ba17f;hpb=a0530d1066d7268f1b1ea67bc3c254e9f9fc5ec8;p=friendica.git diff --git a/mod/home.php b/mod/home.php index 3490c4faea..dc571aaabd 100644 --- a/mod/home.php +++ b/mod/home.php @@ -1,20 +1,23 @@ user['nickname'])) { goaway(System::baseUrl()."/network"); } - if (strlen(get_config('system','singleuser'))) { - goaway(System::baseUrl()."/profile/" . get_config('system','singleuser')); + if (strlen(Config::get('system','singleuser'))) { + goaway(System::baseUrl()."/profile/" . Config::get('system','singleuser')); } }} @@ -22,8 +25,6 @@ function home_init(App $a) { if(! function_exists('home_content')) { function home_content(App $a) { - $o = ''; - if (x($_SESSION,'theme')) { unset($_SESSION['theme']); } @@ -31,21 +32,31 @@ function home_content(App $a) { unset($_SESSION['mobile-theme']); } - /// @TODO No absolute path used, maybe risky (security) - if (file_exists('home.html')) { - if (file_exists('home.css')) { + $customhome = false; + $defaultheader = '