From: Ramon Van Gorkom Date: Sun, 15 Sep 2024 19:48:41 +0000 (+0200) Subject: luci-theme-openwrt: change to HTML (like all other themes) instead of XML to fix... X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=5a30e6c3af7f6bb1b4f02b5fcf8134c2b00ad3fb;p=openwrt-luci.git luci-theme-openwrt: change to HTML (like all other themes) instead of XML to fix incompatibility luci-theme-openwrt: change to HTML (like all other themes) instead of XML to fix incompatibility see also https://github.com/openwrt/luci/issues/7229 Signed-off-by: Ramon Van Gorkom --- diff --git a/themes/luci-theme-openwrt/ucode/template/themes/openwrt.org/header.ut b/themes/luci-theme-openwrt/ucode/template/themes/openwrt.org/header.ut index f6c20be188..9f9e75d532 100644 --- a/themes/luci-theme-openwrt/ucode/template/themes/openwrt.org/header.ut +++ b/themes/luci-theme-openwrt/ucode/template/themes/openwrt.org/header.ut @@ -10,12 +10,11 @@ const boardinfo = ubus.call('system', 'board'); const loadinfo = ubus.call("system", "info")?.load; - http.prepare_content("application/xhtml+xml"); + http.prepare_content('text/html; charset=UTF-8'); -%} - - - + +