Fix autoloader for later inclusion
This commit is contained in:
parent
9a34fcffb2
commit
74e8f99fd8
@ -20,10 +20,13 @@ define('BASE_PATH', dirname(__FILE__).'/');
|
|||||||
define('DRIVER_PATH', BASE_PATH.'drivers/');
|
define('DRIVER_PATH', BASE_PATH.'drivers/');
|
||||||
|
|
||||||
// Bulk loading wrapper workaround for PHP < 5.4
|
// Bulk loading wrapper workaround for PHP < 5.4
|
||||||
|
if ( ! function_exists('do_include'))
|
||||||
|
{
|
||||||
function do_include($path)
|
function do_include($path)
|
||||||
{
|
{
|
||||||
require_once($path);
|
require_once($path);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Load base classes
|
// Load base classes
|
||||||
array_map('do_include', glob(BASE_PATH.'classes/*.php'));
|
array_map('do_include', glob(BASE_PATH.'classes/*.php'));
|
||||||
|
Loading…
Reference in New Issue
Block a user