diff MoinMoin/action/info.py @ 1880:b07b4c102d3d

began refactoring send_page(): processing instruction extraction, getting meta/data part of page only, fixed related problems with language detection. Removed lots of duplicate or unused code.
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Mon, 12 Mar 2007 14:10:45 +0100
parents 9117dcbfd624
children 0b2ad3099fcf
line wrap: on
line diff
--- a/MoinMoin/action/info.py	Mon Mar 12 12:50:21 2007 +0100
+++ b/MoinMoin/action/info.py	Mon Mar 12 14:10:45 2007 +0100
@@ -188,10 +188,7 @@
 
     request.emit_http_headers()
 
-    # This action uses page or wiki language
-    # TODO: currently page.language is broken and not available now.
-    lang = page.language or request.cfg.language_default
-    request.setContentLanguage(lang)
+    request.setContentLanguage(request.lang)
     f = request.formatter
 
     request.theme.send_title(_('Info for "%s"') % (title,), page=page)