We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit e7150643 authored by Mike Sheldon's avatar Mike Sheldon

Check for existence lang parameter correctly

parent 2290aefa
......@@ -23,7 +23,7 @@ require_once('config.php');
if($_GET['lang']) {
if(isset($_GET['lang'])) {
$languages = array($_GET['lang'] . '.UTF-8');
setcookie('lang', $_GET['lang'] . '.UTF-8', time() + 31536000, '/');
} elseif (isset($_COOKIE['lang'])) {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment