summaryrefslogtreecommitdiff
path: root/src/web/_controller
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2025-04-18 14:21:37 -0400
committerFreya Murphy <freya@freyacat.org>2025-04-18 14:21:37 -0400
commit0a753381463e69f9a6c21336de6191dd55d11c75 (patch)
treeeb340dfe5e97378a4fb175baeef9fb4acea484f8 /src/web/_controller
parentupdate post with better image and apk (diff)
downloadwebsite-0a753381463e69f9a6c21336de6191dd55d11c75.tar.gz
website-0a753381463e69f9a6c21336de6191dd55d11c75.tar.bz2
website-0a753381463e69f9a6c21336de6191dd55d11c75.zip
errorrrrrr
Diffstat (limited to 'src/web/_controller')
-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');