From bcb0710fdedf9623cef89dace7e8c29631e6d244 Mon Sep 17 00:00:00 2001 From: Luc Didry Date: Mon, 15 Jan 2018 19:51:22 +0100 Subject: [PATCH] Fix render_not_found crash (from a Mojolicious update) --- lib/Lutim/Controller.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Lutim/Controller.pm b/lib/Lutim/Controller.pm index e117345..8243715 100644 --- a/lib/Lutim/Controller.pm +++ b/lib/Lutim/Controller.pm @@ -234,7 +234,7 @@ sub delete { } }, any => sub { - shift->render_not_found; + $c->helpers->reply->not_found; } ); } @@ -620,7 +620,7 @@ sub short { return $c->redirect_to('/'); } else { # Image never existed - $c->render_not_found; + $c->helpers->reply->not_found; } }