summaryrefslogtreecommitdiff
path: root/src/web/_controller/error.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/web/_controller/error.php')
-rw-r--r--src/web/_controller/error.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/web/_controller/error.php b/src/web/_controller/error.php
index 4195531..9efbb7e 100644
--- a/src/web/_controller/error.php
+++ b/src/web/_controller/error.php
@@ -10,6 +10,11 @@ class Error_controller extends Controller {
public function code(int $code): void
{
+ // funny 451 change
+ if ($code == 404 && rand(0, 100) > 95) {
+ $code = 451;
+ }
+
parent::index();
$this->load_lang('error');