X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fdfrn_poll.php;h=14221c7e6e58458a3ef807538c6994aee1e43944;hb=472518f0b5117362bcf5c49dbaa36095820986a3;hp=bce7bf0cbf72395d874b93c03a1f93dd18b6dd2f;hpb=ab8997f9db910ba70c592bf106a7f5fc41a55b2d;p=friendica.git diff --git a/mod/dfrn_poll.php b/mod/dfrn_poll.php index bce7bf0cbf..14221c7e6e 100644 --- a/mod/dfrn_poll.php +++ b/mod/dfrn_poll.php @@ -1,11 +1,25 @@ . + * */ use Friendica\App; -use Friendica\Core\Config; use Friendica\Core\Logger; use Friendica\Core\System; use Friendica\Core\Session; @@ -49,7 +63,7 @@ function dfrn_poll_init(App $a) $hidewall = false; if (($dfrn_id === '') && empty($_POST['dfrn_id'])) { - if (Config::get('system', 'block_public') && !Session::isAuthenticated()) { + if (DI::config()->get('system', 'block_public') && !Session::isAuthenticated()) { throw new \Friendica\Network\HTTPException\ForbiddenException(); } @@ -539,7 +553,7 @@ function dfrn_poll_content(App $a) switch ($destination_url) { case 'profile': - DI::baseUrl()->redirect('profile/' . $profile . '?tab=profile'); + DI::baseUrl()->redirect('profile/' . $profile . '/profile'); break; case 'photos': DI::baseUrl()->redirect('photos/' . $profile);