friendica/src/Module/HTTPException/PageNotFound.php

16 lines
322 B
PHP
Raw Normal View History

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