Replaced goaway() with System::redirectTo()

This commit is contained in:
Philipp Holzer 2018-10-13 20:05:05 +02:00
parent a95606a10a
commit 3d3a11fa46
No known key found for this signature in database
GPG key ID: 517BE60E2CE5C8A5
5 changed files with 13 additions and 8 deletions

View file

@ -9,6 +9,7 @@
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\PConfig;
use Friendica\Core\System;
function startpage_install() {
Hook::register('home_init', 'addon/startpage/startpage.php', 'startpage_home_init');
@ -31,7 +32,7 @@ function startpage_home_init($a, $b)
$page = PConfig::get(local_user(), 'startpage', 'startpage');
if (strlen($page)) {
$a->internalRedirect($page);
System::redirectTo($page);
}
return;
}