Pass RX_REQUEST_URL directly to the Router

This commit is contained in:
Kijin Sung 2021-01-19 23:28:13 +09:00
parent 8964891387
commit d5160c28ce
3 changed files with 3 additions and 10 deletions

View file

@ -113,12 +113,6 @@ class Router
*/
public static function parseURL(string $method, string $url, int $rewrite_level)
{
// Get the local part of the current URL.
if (starts_with(\RX_BASEURL, $url))
{
$url = substr($url, strlen(\RX_BASEURL));
}
// Prepare the return object.
$result = new \stdClass;
$result->status = 200;