Jeremy Newman : adding language override for rss feeds

Jeremy Newman jnewman at winehq.org
Thu Apr 8 10:43:39 CDT 2010


Module: website
Branch: master
Commit: 424f0eceb6d18c2d15e4b26bafae95ce17f9066e
URL:    http://source.winehq.org/git/website.git/?a=commit;h=424f0eceb6d18c2d15e4b26bafae95ce17f9066e

Author: Jeremy Newman <jnewman at codeweavers.com>
Date:   Thu Apr  8 10:43:19 2010 -0500

adding language override for rss feeds

---

 include/plugins/news.php |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/include/plugins/news.php b/include/plugins/news.php
index b1d7703..f910a70 100644
--- a/include/plugins/news.php
+++ b/include/plugins/news.php
@@ -9,6 +9,10 @@
 // import globals
 global $html, $config;
 
+// language override
+if ($_GET['lang'] and in_array($_GET['lang'], $config->languages))
+    $html->lang = $_GET['lang'];
+
 // display news based on page params
 switch (true)
 {




More information about the wine-cvs mailing list