[ros-diffs] [cfinck] 29631: Get the language for the top and left menu of the Wiki from the RosCMS Cookie. Fixes a part of bug 1590. See issue #1590 for more details.
cfinck at svn.reactos.org
cfinck at svn.reactos.org
Tue Oct 16 21:54:15 CEST 2007
Author: cfinck
Date: Tue Oct 16 23:54:15 2007
New Revision: 29631
URL: http://svn.reactos.org/svn/reactos?rev=29631&view=rev
Log:
Get the language for the top and left menu of the Wiki from the RosCMS Cookie.
Fixes a part of bug 1590.
See issue #1590 for more details.
Modified:
trunk/web/reactos.org/htdocs/wiki/skins/RosCMS.php
Modified: trunk/web/reactos.org/htdocs/wiki/skins/RosCMS.php
URL: http://svn.reactos.org/svn/reactos/trunk/web/reactos.org/htdocs/wiki/skins/RosCMS.php?rev=29631&r1=29630&r2=29631&view=diff
==============================================================================
--- trunk/web/reactos.org/htdocs/wiki/skins/RosCMS.php (original)
+++ trunk/web/reactos.org/htdocs/wiki/skins/RosCMS.php Tue Oct 16 23:54:15 2007
@@ -97,8 +97,12 @@
class="mediawiki <?php $this->text('nsclass') ?> <?php $this->text('dir') ?> <?php $this->text('pageclass') ?>">
<?php
- readfile("http://www.reactos.org/en/subsys_extern_menu_top.html");
- readfile("http://www.reactos.org/en/subsys_extern_menu_left.html");
+ $userlang = $_COOKIE["roscms_usrset_lang"];
+ if(strlen($userlang) != 2)
+ $userlang = "en";
+
+ readfile("http://www.reactos.org/$userlang/subsys_extern_menu_top.html");
+ readfile("http://www.reactos.org/$userlang/subsys_extern_menu_left.html");
?>
<div class="navTitle">Wiki</div>
More information about the Ros-diffs
mailing list