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
|
// check if the route matches and add parameters if any
|
||||||
$args = [];
|
$args = [];
|
||||||
$request_path = (function() {
|
$request_path = (function() {
|
||||||
$haystack = strtok($_SERVER["REQUEST_URI"], '?');
|
$haystack = strtok($_SERVER['REQUEST_URI'], '?');
|
||||||
$needle = dirname($_SERVER['SCRIPT_NAME']);
|
$needle = dirname($_SERVER['SCRIPT_NAME']);
|
||||||
if ($needle === '/') {
|
if ($needle === '/') {
|
||||||
$needle = '';
|
$needle = '';
|
||||||
|
Loading…
Reference in New Issue
Block a user