# HG changeset patch # User Matti Hamalainen # Date 1409436609 -10800 # Node ID 0e8b8fac920da6a9244e73b258c6bc4cef730f20 # Parent 36fb1ce941d58c014e7693619bbff688ff753e53 Check request instead of $_GET. diff -r 36fb1ce941d5 -r 0e8b8fac920d index.php --- a/index.php Wed Aug 27 22:37:42 2014 +0300 +++ b/index.php Sun Aug 31 01:10:09 2014 +0300 @@ -394,9 +394,9 @@ // so that the translation support works properly. // -if (isset($_GET["lang"])) +if (($tmp = stGetRequestItem("lang", FALSE, TRUE)) !== FALSE) { - $tmp = strtolower($_GET["lang"]); + $tmp = strtolower($tmp); if (in_array($tmp, $pageLanguages)) { $pageLang = $tmp; @@ -454,7 +454,7 @@ // Check next period flag -if (isset($_GET["next"])) +if (isset($_REQUEST["next"])) { $nextPeriod = TRUE; $cachePath = "cache-next/";