Fixups
This commit is contained in:
parent
90cde9898b
commit
766b3f0d01
|
@ -91,7 +91,7 @@ class LegacyModule extends BaseModule
|
||||||
$a = DI::app();
|
$a = DI::app();
|
||||||
return $function_name($a);
|
return $function_name($a);
|
||||||
} else {
|
} else {
|
||||||
return parent::{$function_suffix}($this->parameters);
|
return parent::{$function_suffix}();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -24,13 +24,14 @@ namespace Friendica\Module;
|
||||||
use Friendica\BaseModule;
|
use Friendica\BaseModule;
|
||||||
use Friendica\Core\System;
|
use Friendica\Core\System;
|
||||||
use Friendica\Model\Contact;
|
use Friendica\Model\Contact;
|
||||||
|
use Friendica\Network\HTTPException\NotFoundException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Redirects to another URL based on the parameter 'addr'
|
* Redirects to another URL based on the parameter 'addr'
|
||||||
*/
|
*/
|
||||||
class Acctlink extends BaseModule
|
class Acctlink extends BaseModule
|
||||||
{
|
{
|
||||||
public function content(): string
|
public function rawContent()
|
||||||
{
|
{
|
||||||
$addr = trim($_GET['addr'] ?? '');
|
$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