aboutsummaryrefslogtreecommitdiffstats
path: root/langs.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'langs.inc.php')
-rw-r--r--langs.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/langs.inc.php b/langs.inc.php
index 7180c9a1e..59f89b910 100644
--- a/langs.inc.php
+++ b/langs.inc.php
@@ -112,7 +112,7 @@ function relocate($langs, $page = '', $default_locale = 'en', $force_accept_lang
$relocate = sprintf('/%s/%s', $locale->getCompatibleLocale(), $page);
$relocate = str_replace('//', '/', $relocate);
- if ('cli' != PHP_SAPI && do_redirect) {
+ if ('cli' != PHP_SAPI && $do_redirect) {
header('Location: ' . $relocate);
}