diff options
Diffstat (limited to 'it_auto_prepend.php')
-rw-r--r-- | it_auto_prepend.php | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/it_auto_prepend.php b/it_auto_prepend.php index 45ad41d..d683116 100644 --- a/it_auto_prepend.php +++ b/it_auto_prepend.php @@ -53,7 +53,7 @@ function it_initialize() @set_error_handler("it_errorhandler", E_USER_ERROR | E_RECOVERABLE_ERROR | E_WARNING | E_USER_WARNING | E_NOTICE | E_USER_NOTICE); error_reporting($error_reporting); # Restore user setting once we installed error handler - if ($autoloader = function_exists('spl_autoload_register') && spl_autoload_register('it_classloader')) + if (function_exists('spl_autoload_register') && spl_autoload_register('it_classloader')) { ini_set('include_path', $it_path . PATH_SEPARATOR . $include_path); require_once("$it_path/auto_prepend.php"); @@ -113,11 +113,6 @@ function it_initialize() { # Convert syntax (we will return name of converted script to global context to start it there) $result = it_convert(it_untaint($_SERVER['SCRIPT_FILENAME'], TC_SELF)); - - /* XXX Disabled as DB not always there - if (!$autoloader) # PHP 4 fallback - it_dbi::createclasses(); - */ } } |