mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-06-17 00:37:52 +00:00
Development
- Fixed BootManager not loading. - Optimised for-loops.
This commit is contained in:
@@ -107,10 +107,10 @@ abstract class LoadableRoute extends Route implements ILoadableRoute
|
||||
|
||||
/* Let's parse the values of any {} parameter in the url */
|
||||
|
||||
$max = count($params);
|
||||
$max = count($params) - 1;
|
||||
$keys = array_keys($params);
|
||||
|
||||
for ($i = 0; $i < $max; $i++) {
|
||||
for ($i = $max; $i >= 0; $i--) {
|
||||
$param = $keys[$i];
|
||||
$value = $params[$param];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user