CONSISTENCY or something

This commit is contained in:
William 2023-01-02 16:02:26 +00:00
parent 9ec14b6b73
commit 6bb6a8b4aa

View File

@ -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 = '';