aboutsummaryrefslogtreecommitdiff
path: root/h-source/Library/Call.php
diff options
context:
space:
mode:
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);
}
}