aboutsummaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/index.php b/index.php
index 2a551fb..3a946af 100644
--- a/index.php
+++ b/index.php
@@ -11,7 +11,12 @@ require_once 'contrib/spyc/spyc.php';
// Autoloader.
function cinisis_autoload($class) {
- require_once 'classes/'. $class .'.php';
+ if (strstr($class, 'Iterator')) {
+ require_once 'classes/iterators/'. $class .'.php';
+ }
+ else {
+ require_once 'classes/'. $class .'.php';
+ }
}
// Register autoloader.