aboutsummaryrefslogtreecommitdiff
path: root/h-source/Library/Call.php
diff options
context:
space:
mode:
authorAntonio Gallo <tonicucoz@gmail.com>2011-12-03 12:30:25 +0000
committerAntonio Gallo <tonicucoz@gmail.com>2011-12-03 12:30:25 +0000
commitd30d70afd95653bb356603612db6519d6e6ebead (patch)
tree8ca2f2a7f24eeea1203b0042015d25f18f97496b /h-source/Library/Call.php
parentf56fa1fc50484d99906a0a22e2931f9c1fe708b6 (diff)
improved i18n
Diffstat (limited to 'h-source/Library/Call.php')
-rwxr-xr-xh-source/Library/Call.php3
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);
}
}