diff options
author | dracony <draconyster@gmail.com> | 2013-04-20 21:44:51 +0300 |
---|---|---|
committer | dracony <draconyster@gmail.com> | 2013-04-20 21:44:51 +0300 |
commit | 6f619d0f9c044d5d4168a375ec5712d48eabd90c (patch) | |
tree | db6415af2e8dfde5fb5468fa454df448ee31e204 | |
parent | 962e570a47c5c5e4f4f3670318aeea4378ccf260 (diff) | |
download | PHPixie-origin/phpixie-old.zip PHPixie-origin/phpixie-old.tar.gz PHPixie-origin/phpixie-old.tar.bz2 |
added basepath tou routeorigin/phpixie-old
-rw-r--r-- | system/classes/route.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/system/classes/route.php b/system/classes/route.php index 04b9a6c..a35c28f 100644 --- a/system/classes/route.php +++ b/system/classes/route.php @@ -94,7 +94,7 @@ class Route while ($count > 0) $url = preg_replace("#\({$chars}<{$chars}>{$chars}\)#", '', $url, -1, $count); - $url = str_replace(array('(', ')'), '', $url); + $url = Config::get('core.basepath','/').str_replace(array('(', ')'), '', $url); if ($absolute) $url = $protocol.'://'.$_SERVER['HTTP_HOST'].$url; @@ -211,4 +211,4 @@ class Route return $route; } -}
\ No newline at end of file +} |