]> git.mxchange.org Git - friendica.git/blobdiff - mod/dfrn_poll.php
Refactor "Authentication" class with four main methods:
[friendica.git] / mod / dfrn_poll.php
index 6aef31a54635840fd78441f46c167efee94b389c..892aecacb7ec463dce85cbaffc55ec38a606a9f4 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 use Friendica\App;
+use Friendica\BaseObject;
 use Friendica\Core\Authentication;
 use Friendica\Core\Config;
 use Friendica\Core\L10n;
@@ -21,7 +22,9 @@ use Friendica\Util\XML;
 
 function dfrn_poll_init(App $a)
 {
-       Authentication::sessionAuth();
+       /** @var Authentication $authentication */
+       $authentication = BaseObject::getClass(Authentication::class);
+       $authentication->withSession($a, $_COOKIE);
 
        $dfrn_id         =  $_GET['dfrn_id']         ?? '';
        $type            = ($_GET['type']            ?? '') ?: 'data';