This commit is contained in:
Philipp 2021-11-16 22:39:23 +01:00
parent 90cde9898b
commit 766b3f0d01
No known key found for this signature in database
GPG key ID: 24A7501396EB5432
2 changed files with 4 additions and 3 deletions

View 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}();
}
}
}

View 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');
}
}