From 74e8f99fd89d394124eb2639dfca9889c71bc39b Mon Sep 17 00:00:00 2001 From: Timothy Warren Date: Thu, 12 Apr 2012 14:00:42 -0400 Subject: [PATCH] Fix autoloader for later inclusion --- autoload.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/autoload.php b/autoload.php index 9465614..9bd0d64 100644 --- a/autoload.php +++ b/autoload.php @@ -20,9 +20,12 @@ define('BASE_PATH', dirname(__FILE__).'/'); define('DRIVER_PATH', BASE_PATH.'drivers/'); // Bulk loading wrapper workaround for PHP < 5.4 -function do_include($path) +if ( ! function_exists('do_include')) { - require_once($path); + function do_include($path) + { + require_once($path); + } } // Load base classes