aboutsummaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorSilvio <silvio@devlet.com.br>2010-07-15 18:15:21 -0300
committerSilvio <silvio@devlet.com.br>2010-07-15 18:15:21 -0300
commitd9f864a13f9216b7ee78a85c53d3184220eb01c3 (patch)
tree803d9f3095a58cd638b596781eb54d6369a97708 /index.php
parent995ab5bad89603d40b7d9d60fef4bb8bae1dc9d3 (diff)
downloadcinisis-d9f864a13f9216b7ee78a85c53d3184220eb01c3.tar.gz
cinisis-d9f864a13f9216b7ee78a85c53d3184220eb01c3.tar.bz2
Moving iterators to their own folder
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.