]> git.mxchange.org Git - friendica.git/blobdiff - mod/home.php
Renamed System::redirect() to $a->redirect()
[friendica.git] / mod / home.php
index 33d736a4e1cba2793efd62c8e576a90135f5740f..868bc9e488b1d82b212b1f1ca99c6b3cfe355c3f 100644 (file)
@@ -16,11 +16,11 @@ function home_init(App $a) {
        Addon::callHooks('home_init',$ret);
 
        if (local_user() && ($a->user['nickname'])) {
-               goaway(System::baseUrl()."/network");
+               $a->redirect('network');
        }
 
        if (strlen(Config::get('system','singleuser'))) {
-               goaway(System::baseUrl()."/profile/" . Config::get('system','singleuser'));
+               $a->redirect('profile/' . Config::get('system','singleuser'));
        }
 
 }}