aboutsummaryrefslogtreecommitdiffstats
path: root/langs.inc.php
diff options
context:
space:
mode:
authorfilip <filip.komar@gmail.com>2016-06-13 01:25:30 +0200
committerfilip <filip.komar@gmail.com>2016-06-13 01:25:30 +0200
commit2ee497f233166212ea31439c64272b22fc0d2f4e (patch)
treedf16fef4b450fa8d34f853143653fb37de7f9369 /langs.inc.php
parent89de05fad0c205ad0d5d8475cbb9fd94a9bb5f83 (diff)
downloadwww-2ee497f233166212ea31439c64272b22fc0d2f4e.tar
www-2ee497f233166212ea31439c64272b22fc0d2f4e.tar.gz
www-2ee497f233166212ea31439c64272b22fc0d2f4e.tar.bz2
www-2ee497f233166212ea31439c64272b22fc0d2f4e.tar.xz
www-2ee497f233166212ea31439c64272b22fc0d2f4e.zip
ligher server load with redirection
adding some 'die' instructions after header('Location: ...
Diffstat (limited to 'langs.inc.php')
-rw-r--r--langs.inc.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/langs.inc.php b/langs.inc.php
index 5c18dd2dc..42bb3a748 100644
--- a/langs.inc.php
+++ b/langs.inc.php
@@ -90,6 +90,7 @@ function relocate($langs, $page = '', $default_locale = 'en', $force_accept_lang
if ('cli' != PHP_SAPI && $do_redirect) {
header('Location: ' . $relocate);
+ die;
}
return $relocate;