From 11ef0b52d45b3d916eaae460d9fb0886aa6db3b2 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Wed, 12 Jan 2022 06:56:41 +0200 Subject: [PATCH] bb --- files/routes/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/settings.py b/files/routes/settings.py index 49a479b2c9..e14b96a5bb 100644 --- a/files/routes/settings.py +++ b/files/routes/settings.py @@ -367,7 +367,7 @@ def settings_profile_post(v): if theme: if theme in ["classic","transparent", "win98", "dark", "light", "coffee", "tron", "4chan", "midnight"]: if theme == "transparent" and not v.background: - return render_template(f"{template}settings_profile.html", v=v, error="You need to set a background to use the transparent theme!") + return {"error": "You need to set a background to use the transparent theme!"} v.theme = theme if theme == "win98": v.themecolor = "30409f" updated = True