Refactor deprecated App::internalRedirect() to DI::baseUrl()->redirect()

This commit is contained in:
nupplaPhil 2019-12-16 00:28:30 +01:00
parent 33dae7eb94
commit 99db3452e3
No known key found for this signature in database
GPG key ID: D8365C3D36B77D90
4 changed files with 10 additions and 7 deletions

View file

@ -78,6 +78,7 @@ use Friendica\Core\Protocol;
use Friendica\Core\Renderer;
use Friendica\Core\Worker;
use Friendica\Database\DBA;
use Friendica\DI;
use Friendica\Model\Contact;
use Friendica\Model\Conversation;
use Friendica\Model\Group;
@ -263,7 +264,7 @@ function twitter_settings_post(App $a)
info($e->getMessage());
}
// reload the Addon Settings page, if we don't do it see Bug #42
$a->internalRedirect('settings/connectors');
DI::baseUrl()->redirect('settings/connectors');
} else {
// if no PIN is supplied in the POST variables, the user has changed the setting
// to post a tweet for every new __public__ posting to the wall