diff options
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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. |