main
Bob Mottram 2024-04-26 12:56:03 +01:00
parent 5560b8644c
commit 210faa62dd
2 changed files with 4 additions and 3 deletions

View File

@ -4170,7 +4170,7 @@ def daemon_http_get(self) -> None:
self.server.http_prefix, self.server.http_prefix,
self.server.domain, self.server.domain,
self.server.domain_full, self.server.domain_full,
cookie): cookie, self.server.system_language):
self.server.getreq_busy = False self.server.getreq_busy = False
return return

View File

@ -211,7 +211,8 @@ def edit_newswire2(self, calling_domain: str, path: str,
def edit_news_post2(self, calling_domain: str, path: str, def edit_news_post2(self, calling_domain: str, path: str,
translate: {}, base_dir: str, translate: {}, base_dir: str,
http_prefix: str, domain: str, http_prefix: str, domain: str,
domain_full: str, cookie: str) -> bool: domain_full: str, cookie: str,
system_language: str) -> bool:
"""Show the edit screen for a news post """Show the edit screen for a news post
""" """
if '/users/' in path and '/editnewspost=' in path: if '/users/' in path and '/editnewspost=' in path:
@ -230,7 +231,7 @@ def edit_news_post2(self, calling_domain: str, path: str,
msg = html_edit_news_post(translate, base_dir, msg = html_edit_news_post(translate, base_dir,
path, domain, path, domain,
post_url, post_url,
self.server.system_language) system_language)
if msg: if msg:
msg = msg.encode('utf-8') msg = msg.encode('utf-8')
msglen = len(msg) msglen = len(msg)