From: Michael Tremer Date: Fri, 22 Jan 2010 17:18:38 +0000 (+0100) Subject: Fix issue that news items got displayed in wrong language. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2c055a8e2ed36462e6365f43ea25e66a2446cafc;p=ipfire.org.git Fix issue that news items got displayed in wrong language. --- diff --git a/www/webapp/ui_modules.py b/www/webapp/ui_modules.py index 17923eb7..aa89f805 100644 --- a/www/webapp/ui_modules.py +++ b/www/webapp/ui_modules.py @@ -5,6 +5,8 @@ import tornado.web import menu import releases +from helpers import Item + class UIModule(tornado.web.UIModule): def render_string(self, *args, **kwargs): kwargs.update({ @@ -36,6 +38,7 @@ class MenuModule(UIModule): class NewsItemModule(UIModule): def render(self, item): + item = Item(**item.args.copy()) for attr in ("subject", "content"): if type(item[attr]) != type({}): continue