]> git.mxchange.org Git - friendica.git/commitdiff
Fixups
authorPhilipp <admin@philipp.info>
Tue, 16 Nov 2021 21:39:23 +0000 (22:39 +0100)
committerPhilipp <admin@philipp.info>
Tue, 16 Nov 2021 21:40:39 +0000 (22:40 +0100)
src/LegacyModule.php
src/Module/Acctlink.php

index 38c3e9a8fb4d0b8ff68309f25aa95418a37322b4..53f76766044cde16a55f9d17ccd6bbc0f7d2b7d7 100644 (file)
@@ -91,7 +91,7 @@ class LegacyModule extends BaseModule
                        $a = DI::app();
                        return $function_name($a);
                } else {
-                       return parent::{$function_suffix}($this->parameters);
+                       return parent::{$function_suffix}();
                }
        }
 }
index b14bbf8d705f5eda25bd8113a1580d104bccb5c4..4093e3cd8e1763006650232fd293a3802b73e39a 100644 (file)
@@ -24,13 +24,14 @@ namespace Friendica\Module;
 use Friendica\BaseModule;
 use Friendica\Core\System;
 use Friendica\Model\Contact;
+use Friendica\Network\HTTPException\NotFoundException;
 
 /**
  * Redirects to another URL based on the parameter 'addr'
  */
 class Acctlink extends BaseModule
 {
-       public function content(): string
+       public function rawContent()
        {
                $addr = trim($_GET['addr'] ?? '');
 
@@ -42,6 +43,6 @@ class Acctlink extends BaseModule
                        }
                }
 
-               return '';
+               throw new NotFoundException('Parameter "url" is missing');
        }
 }