aboutsummaryrefslogtreecommitdiffstats
path: root/langs.inc.php
diff options
context:
space:
mode:
authorColin Guthrie <colin@mageia.org>2014-02-15 13:25:12 +0000
committerColin Guthrie <colin@mageia.org>2014-02-15 13:25:12 +0000
commit5f5f22f5be8964c8c9b9b7d0dfe13210ef740a96 (patch)
treef653c1c192745d9d4d525f770f69632c4fe5f2c1 /langs.inc.php
parent67fa5dba7270df661c2b9b48c52529cb2704e3f8 (diff)
downloadwww-5f5f22f5be8964c8c9b9b7d0dfe13210ef740a96.tar
www-5f5f22f5be8964c8c9b9b7d0dfe13210ef740a96.tar.gz
www-5f5f22f5be8964c8c9b9b7d0dfe13210ef740a96.tar.bz2
www-5f5f22f5be8964c8c9b9b7d0dfe13210ef740a96.tar.xz
www-5f5f22f5be8964c8c9b9b7d0dfe13210ef740a96.zip
Fix some PHP notices found indirectly while testing gnutls update.
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);
}