summaryrefslogtreecommitdiff
path: root/src/lib/Router.class.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/Router.class.php')
-rw-r--r--src/lib/Router.class.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/Router.class.php b/src/lib/Router.class.php
index 459034d..238e3f8 100644
--- a/src/lib/Router.class.php
+++ b/src/lib/Router.class.php
@@ -27,8 +27,8 @@ class Router {
$dirs = explode(PATH_SEPARATOR, $controllerpath);
foreach ($dirs as $dir) {
// Find all files in $dir with the ext `.class.php'
- $controllerfiles = glob($dir.'/*.class.php');
- foreach ($controllerfiles as $file) {
+ $files = glob($dir.'/*.class.php');
+ foreach ($files as $file) {
// and include them
require_once($file);
}