]> git.mxchange.org Git - friendica.git/commitdiff
Renamed AcctLink to Acctlink
authorPhilipp Holzer <admin@philipp.info>
Sat, 13 Oct 2018 17:00:44 +0000 (19:00 +0200)
committerPhilipp Holzer <admin@philipp.info>
Sat, 13 Oct 2018 17:03:38 +0000 (19:03 +0200)
src/Module/AcctLink.php [deleted file]
src/Module/Acctlink.php [new file with mode: 0644]

diff --git a/src/Module/AcctLink.php b/src/Module/AcctLink.php
deleted file mode 100644 (file)
index 2ddc278..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-
-namespace Friendica\Module;
-
-use Friendica\BaseModule;
-use Friendica\Network\Probe;
-
-/**
- * Redirects to another URL based on the parameter 'addr'
- */
-class AcctLink extends BaseModule
-{
-       public static function content()
-       {
-               $addr = defaults($_REQUEST, 'addr', false);
-
-               if ($addr) {
-                       $url = defaults(Probe::uri($addr), 'url', false);
-
-                       if ($url) {
-                               goaway($url);
-                               killme();
-                       }
-               }
-       }
-}
diff --git a/src/Module/Acctlink.php b/src/Module/Acctlink.php
new file mode 100644 (file)
index 0000000..f149052
--- /dev/null
@@ -0,0 +1,26 @@
+<?php
+
+namespace Friendica\Module;
+
+use Friendica\BaseModule;
+use Friendica\Network\Probe;
+
+/**
+ * Redirects to another URL based on the parameter 'addr'
+ */
+class Acctlink extends BaseModule
+{
+       public static function content()
+       {
+               $addr = defaults($_REQUEST, 'addr', false);
+
+               if ($addr) {
+                       $url = defaults(Probe::uri($addr), 'url', false);
+
+                       if ($url) {
+                               goaway($url);
+                               exit();
+                       }
+               }
+       }
+}