Adjust autoloader

This commit is contained in:
Timothy Warren 2012-05-29 14:52:27 -04:00
parent 93ddd7baec
commit 35b21c31a5
2 changed files with 5 additions and 10 deletions

View File

@ -52,8 +52,9 @@ function query_autoload($class)
$class = strtolower($class); $class = strtolower($class);
// Load Firebird separately // Load Firebird separately
if ($class === 'firebird') if (function_exists('fbird_connect') && $class === 'firebird')
{ {
array_map('do_include', glob(QDRIVER_PATH.'/firebird/*.php'));
return; return;
} }
@ -77,12 +78,6 @@ function query_autoload($class)
// Set up autoloader // Set up autoloader
spl_autoload_register('query_autoload'); spl_autoload_register('query_autoload');
// Load Firebird driver, if applicable
if (function_exists('fbird_connect'))
{
array_map('do_include', glob(QDRIVER_PATH.'/firebird/*.php'));
}
// -------------------------------------------------------------------------- // --------------------------------------------------------------------------
/** /**

Binary file not shown.