]> git.mxchange.org Git - friendica.git/blobdiff - include/redir.php
The index mustn't be 192 characters long
[friendica.git] / include / redir.php
index d29159ed0342c91a2c652932508a7ed90c8382dc..36f982b12cd6f76b5293ee6cb4344e6656f5188b 100644 (file)
@@ -1,6 +1,8 @@
 <?php
 
-function auto_redir(&$a, $contact_nick) {
+use Friendica\App;
+
+function auto_redir(App $a, $contact_nick) {
 
        // prevent looping
 
@@ -70,7 +72,7 @@ function auto_redir(&$a, $contact_nick) {
 
                if(strlen($dfrn_id) < 3)
                        return;
-                       
+
                $sec = random_string();
 
                q("INSERT INTO `profile_check` ( `uid`, `cid`, `dfrn_id`, `sec`, `expire`)
@@ -84,9 +86,9 @@ function auto_redir(&$a, $contact_nick) {
 
                $url = curPageURL();
 
-               logger('auto_redir: ' . $r[0]['name'] . ' ' . $sec, LOGGER_DEBUG); 
+               logger('auto_redir: ' . $r[0]['name'] . ' ' . $sec, LOGGER_DEBUG);
                $dest = (($url) ? '&destination_url=' . $url : '');
-               goaway ($r[0]['poll'] . '?dfrn_id=' . $dfrn_id 
+               goaway ($r[0]['poll'] . '?dfrn_id=' . $dfrn_id
                        . '&dfrn_version=' . DFRN_PROTOCOL_VERSION . '&type=profile&sec=' . $sec . $dest );
        }