fix favicon changes

This commit is contained in:
cube
2026-05-10 00:47:48 +01:00
parent 1edaaf579b
commit 7f70bd8185
2 changed files with 11 additions and 2 deletions

View File

@@ -52,8 +52,12 @@ def create_app():
return app.config["SYSTEM_NAME"]
def get_pages_name():
return app.config["PAGES_NAME"]
def check_favicon():
if os.path.isfile(os.path.join(app.config["STATIC_FOLDER"], "favicon.ico")):
return True
return False
return dict(get_themes=get_themes, server_time=w_server_time, get_datetime_str=w_get_datetime_str, get_member=get_member, remove_html=remove_html, get_pages=get_pages, get_system_name=get_system_name, get_pages_name=get_pages_name)
return dict(get_themes=get_themes, server_time=w_server_time, get_datetime_str=w_get_datetime_str, get_member=get_member, remove_html=remove_html, get_pages=get_pages, get_system_name=get_system_name, get_pages_name=get_pages_name, check_favicon=check_favicon)
return app