From cc6a7e3e861955ac85da0bb3050bba67d3ae7c3b Mon Sep 17 00:00:00 2001 From: Romain d'Alverny Date: Fri, 25 Nov 2011 13:15:52 +0000 Subject: fix redirection --- langs.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'langs.inc.php') diff --git a/langs.inc.php b/langs.inc.php index cb0704cb3..49f326f9d 100644 --- a/langs.inc.php +++ b/langs.inc.php @@ -101,10 +101,10 @@ function relocate($langs, $page = '', $default_locale = 'en') $locale->setDefaultLocale($default_locale); - header(sprintf('Location: /%s/%s', + header(str_replace('//', '/', sprintf('Location: /%s/%s', $locale->getCompatibleLocale(), $page - )); + ))); die; } -- cgit v1.2.1