Fix autoloader for later inclusion

This commit is contained in:
Timothy Warren 2012-04-12 14:00:42 -04:00
parent 9a34fcffb2
commit 74e8f99fd8
1 changed files with 5 additions and 2 deletions

View File

@ -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