friendica/src/Module/HTTPException/PageNotFound.php

16 lines
315 B
PHP
Raw Normal View History

<?php
namespace Friendica\Module\HTTPException;
use Friendica\BaseModule;
2020-01-18 21:07:07 +00:00
use Friendica\DI;
use Friendica\Network\HTTPException;
class PageNotFound extends BaseModule
{
public static function content(array $parameters = [])
{
throw new HTTPException\NotFoundException(DI::l10n()->t('Page not found.'));
}
}