Fixups
This commit is contained in:
parent
90cde9898b
commit
766b3f0d01
2 changed files with 4 additions and 3 deletions
|
@ -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}();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue