Replaced goaway() with System::redirectTo()
This commit is contained in:
parent
a95606a10a
commit
3d3a11fa46
5 changed files with 13 additions and 8 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue