diff options
author | Antonio Gallo <tonicucoz@gmail.com> | 2011-12-03 12:30:25 +0000 |
---|---|---|
committer | Antonio Gallo <tonicucoz@gmail.com> | 2011-12-03 12:30:25 +0000 |
commit | d30d70afd95653bb356603612db6519d6e6ebead (patch) | |
tree | 8ca2f2a7f24eeea1203b0042015d25f18f97496b /h-source/Library/Call.php | |
parent | f56fa1fc50484d99906a0a22e2931f9c1fe708b6 (diff) |
improved i18n
Diffstat (limited to 'h-source/Library/Call.php')
-rwxr-xr-x | h-source/Library/Call.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/h-source/Library/Call.php b/h-source/Library/Call.php index 29a3046..c75508b 100755 --- a/h-source/Library/Call.php +++ b/h-source/Library/Call.php @@ -232,12 +232,13 @@ function rewrite($url) { foreach (Route::$map as $key => $address) { + $oldKey = $key; $key = str_replace('\/','/',$key); $key = str_replace('/','\/',$key); if (preg_match('/^'.$key.'/',$url)) { $nurl = preg_replace('/^'.$key.'/',$address,$url); - return array($nurl,$key); + return array($nurl,$oldKey); // return preg_replace('/^'.$key.'/',$address,$url); } } |