]> git.ipfire.org Git - ipfire.org.git/commitdiff
Fix issue that news items got displayed in wrong language.
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 22 Jan 2010 17:18:38 +0000 (18:18 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 22 Jan 2010 17:18:38 +0000 (18:18 +0100)
www/webapp/ui_modules.py

index 17923eb79d9de84181b0954a9e78605e037b3c43..aa89f805a71c8fddb3c8322530f5054bf8074861 100644 (file)
@@ -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