]> git.mxchange.org Git - friendica.git/blobdiff - mod/redir.php
Merge pull request #11145 from nupplaphil/feat/check_license
[friendica.git] / mod / redir.php
index bef67300f52ff2c420811a6b811996bed1314897..fe0da9e664a5f796cc5ae7f1ee553d84d0c137c9 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2021, the Friendica project
+ * @copyright Copyright (C) 2010-2022, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -76,7 +76,7 @@ function redir_init(App $a) {
                        // Local user is already authenticated.
                        redir_check_url($contact_url, $url);
                        $target_url = $url ?: $contact_url;
-                       Logger::log($contact['name'] . " is already authenticated. Redirecting to " . $target_url, Logger::DEBUG);
+                       Logger::info($contact['name'] . " is already authenticated. Redirecting to " . $target_url);
                        $a->redirect($target_url);
                }
        }
@@ -93,7 +93,7 @@ function redir_init(App $a) {
                        // Remote user is already authenticated.
                        redir_check_url($contact_url, $url);
                        $target_url = $url ?: $contact_url;
-                       Logger::log($contact['name'] . " is already authenticated. Redirecting to " . $target_url, Logger::DEBUG);
+                       Logger::info($contact['name'] . " is already authenticated. Redirecting to " . $target_url);
                        $a->redirect($target_url);
                }
        }
@@ -112,7 +112,7 @@ function redir_init(App $a) {
                $url .= $separator . 'zrl=' . urlencode($my_profile);
        }
 
-       Logger::log('redirecting to ' . $url, Logger::DEBUG);
+       Logger::info('redirecting to ' . $url);
        $a->redirect($url);
 }
 
@@ -142,7 +142,7 @@ function redir_magic($a, $cid, $url)
        }
 
        // Test for magic auth on the target system
-       $serverret = DI::httpRequest()->get($basepath . '/magic');
+       $serverret = DI::httpClient()->get($basepath . '/magic');
        if ($serverret->isSuccess()) {
                $separator = strpos($target_url, '?') ? '&' : '?';
                $target_url .= $separator . 'zrl=' . urlencode($visitor) . '&addr=' . urlencode($contact_url);