Changed autoloading to allow other autloaders to run

pull/11/head
Mike Cao 14 years ago
parent 739cdb34d0
commit e1cf8a1f99

@ -383,7 +383,11 @@ class Flight {
require $base.'/'.$file;
}
else {
throw new Exception('Unable to load file: '.$base.'/'.$file);
$loaders = spl_autoload_functions();
$last = array_pop($loaders);
if (is_array($last) && $last[0] == __CLASS__ && $last[1] == __FUNCTION__) {
throw new Exception('Unable to load file: '.$base.'/'.$file);
}
}
}

Loading…
Cancel
Save