CONSISTENCY or something
This commit is contained in:
parent
9ec14b6b73
commit
6bb6a8b4aa
@ -19,7 +19,7 @@ abstract class Route
|
||||
// check if the route matches and add parameters if any
|
||||
$args = [];
|
||||
$request_path = (function() {
|
||||
$haystack = strtok($_SERVER["REQUEST_URI"], '?');
|
||||
$haystack = strtok($_SERVER['REQUEST_URI'], '?');
|
||||
$needle = dirname($_SERVER['SCRIPT_NAME']);
|
||||
if ($needle === '/') {
|
||||
$needle = '';
|
||||
|
Loading…
Reference in New Issue
Block a user