*/
class Probe extends BaseModule
{
- public static function content()
+ public static function content(array $parameters = [])
{
if (!local_user()) {
$e = new HTTPException\ForbiddenException(L10n::t('Only logged in users are permitted to perform a probing.'));
throw $e;
}
- $addr = defaults($_GET, 'addr', '');
+ $addr = $_GET['addr'] ?? '';
$res = '';
if (!empty($addr)) {