mirror of
https://codeberg.org/diginaut/digimarks.git
synced 2026-02-04 16:10:27 +01:00
Make 404 page theme aware (falls back to default)
This commit is contained in:
@@ -396,7 +396,8 @@ def make_external(url):
|
||||
|
||||
@app.errorhandler(404)
|
||||
def page_not_found(e):
|
||||
return render_template('404.html', error=e), 404
|
||||
theme = themes[DEFAULT_THEME]
|
||||
return render_template('404.html', error=e, theme=theme), 404
|
||||
|
||||
|
||||
@app.route('/')
|
||||
|
||||
Reference in New Issue
Block a user