mirror of
https://github.com/friendica/friendica
synced 2024-12-25 14:00:15 +00:00
358baa9f62
- Module init, post and rawContent-triggered HTTPException generate the classic bare HTTP status page - Module content-triggered HTTPException generate themed error pages - Trim System::httpExit to the bare minimum
15 lines
280 B
PHP
15 lines
280 B
PHP
<?php
|
|
|
|
namespace Friendica\Module;
|
|
|
|
use Friendica\BaseModule;
|
|
use Friendica\Core\L10n;
|
|
use Friendica\Network\HTTPException;
|
|
|
|
class PageNotFound extends BaseModule
|
|
{
|
|
public static function content()
|
|
{
|
|
throw new HTTPException\NotFoundException(L10n::t('Page not found.'));
|
|
}
|
|
}
|