Node.js based forum software built for the modern web
don't build bodyClass twice when rendering 404
Barış Soner Uşaklıcdc92f1024da
diff --git a/src/controllers/404.js b/src/controllers/404.jsindex bed1a085e3..6bda249078 100644--- a/src/controllers/404.js+++ b/src/controllers/404.js@@ -71,7 +71,6 @@ exports.send404 = helpers.try(async (req, res) => {res.render('404', {path: validator.escape(path),title: '[[global:404.title]]',- bodyClass: helpers.buildBodyClass(req, res),icon: icons[secureRandom(0, icons.length - 1)],});});diff --git a/src/views/404.tpl b/src/views/404.tplindex e0a3d68ed2..482e16ecd9 100644--- a/src/views/404.tpl+++ b/src/views/404.tpl@@ -3,7 +3,7 @@<div class="mx-auto"><div class="d-flex flex-column gap-3 justify-content-center text-center">- <div class="mx-auto p-4 bg-light border rounded">+ <div class="mx-auto p-4"><i class="text-secondary fa fa-fw fa-4x {{{ if icon }}}{icon}{{{ else }}}fa-otter{{{ end }}}"></i></div>{{{ if error }}}{error}{{{ else }}}[[global:404.message, {config.relative_path}]]{{{ end }}}