Mercurial > hg > lukkari
changeset 142:0e8b8fac920d
Check request instead of $_GET.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 31 Aug 2014 01:10:09 +0300 |
parents | 36fb1ce941d5 |
children | d70c899b0571 |
files | index.php |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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/";