r21958 - htdocs/branches/beta - Use cookie if lang query is not available.
Cristian Marchi
cmarchi at code.gnucash.org
Sun Feb 5 03:16:32 EST 2012
Author: cmarchi
Date: 2012-02-05 03:16:31 -0500 (Sun, 05 Feb 2012)
New Revision: 21958
Trac: http://svn.gnucash.org/trac/changeset/21958
Modified:
htdocs/branches/beta/docs.phtml
Log:
Use cookie if lang query is not available.
Modified: htdocs/branches/beta/docs.phtml
===================================================================
--- htdocs/branches/beta/docs.phtml 2012-02-05 06:03:24 UTC (rev 21957)
+++ htdocs/branches/beta/docs.phtml 2012-02-05 08:16:31 UTC (rev 21958)
@@ -14,6 +14,7 @@
$langpath = 'C';
$l_arg = parse_url($_SERVER['REQUEST_URI']);
print_r($l_arg);
+if (is_null($l_arg[query])) { $l_arg = $_COOKIE['lang_cookie']; }
echo $l_arg[query];
if ($l_arg[query]) { /* There is a language argument */
switch ($l_arg[query]) {
More information about the gnucash-changes
mailing list