diff options
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -9,7 +9,11 @@ if (isset($_GET['flang'])) $lang = array_key_exists($_GET['flang'], $langs) ? $_GET['flang'] : 'en'; if (isset($_GET['furl'])) { - $url = substr_replace($_GET['furl'], $lang, 1, 2); + $url = explode('/', $_GET['furl']); + array_shift($url); + array_shift($url); + $url = '/' . $lang . '/' . implode($url, '/'); + //$url = substr_replace($_GET['furl'], $lang, 1, 2); } else $url = '/' . $lang . '/'; |