mirror of
https://github.com/aquatix/digimarks.git
synced 2025-12-06 20:55:10 +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