Skip to content

Commit

Permalink
Merge pull request #4 from leojonathanoh/fix/fix-asp-route-in-src-asp…
Browse files Browse the repository at this point in the history
…-system-system.php

Fix: Fix /ASP/ route in src/ASP/system/System.php
  • Loading branch information
leojonathanoh authored Sep 28, 2022
2 parents 0ef8c46 + a2aae49 commit 86e071d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ASP/system/System.php
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ protected static function HandleAdminRequest()

// Get our MVC route
$uri = (isset($_GET['uri']) && !empty($_GET['uri'])) ? $_GET['uri'] : 'home';
$uri = str_replace('/ASP/', '', $uri);
$parts = explode('/', $uri);
$length = count($parts);
$GLOBALS['controller'] = $controller = ($length > 0) ? $parts[0] : 'home';
Expand Down Expand Up @@ -344,4 +345,4 @@ public static function LogException(Exception $e)
{
ErrorHandler::LogException($e);
}
}
}

0 comments on commit 86e071d

Please sign in to comment.