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.php32
1 files changed, 16 insertions, 16 deletions
diff --git a/h-source/Library/Call.php b/h-source/Library/Call.php
index e89b3b0..a2c7e68 100755
--- a/h-source/Library/Call.php
+++ b/h-source/Library/Call.php
@@ -72,10 +72,10 @@ function callHook()
}
//rewrite the URL
-// if (Route::$rewrite === 'yes')
-// {
-// $url = rewrite($url);
-// }
+ if (Route::$rewrite === 'yes')
+ {
+ $url = rewrite($url);
+ }
// echo $url;
@@ -212,18 +212,18 @@ function callHook()
}
-// //rewrite the URL
-// function rewrite($url)
-// {
-// foreach (Route::$map as $key => $address)
-// {
-// if (preg_match('/^'.$key.'/',$url))
-// {
-// return preg_replace('/^'.$key.'/',$address,$url);
-// }
-// }
-// return ERROR_CONTROLLER.'/'.ERROR_ACTION;
-// }
+//rewrite the URL
+function rewrite($url)
+{
+ foreach (Route::$map as $key => $address)
+ {
+ if (preg_match('/^'.$key.'/',$url))
+ {
+ return preg_replace('/^'.$key.'/',$address,$url);
+ }
+ }
+ return $url;
+}
function getQueryString()
{