diff options
author | filip <filip.komar@gmail.com> | 2016-06-13 01:25:30 +0200 |
---|---|---|
committer | filip <filip.komar@gmail.com> | 2016-06-13 01:25:30 +0200 |
commit | 2ee497f233166212ea31439c64272b22fc0d2f4e (patch) | |
tree | df16fef4b450fa8d34f853143653fb37de7f9369 /langs.inc.php | |
parent | 89de05fad0c205ad0d5d8475cbb9fd94a9bb5f83 (diff) | |
download | www-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.php | 1 |
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; |