From 5db02f8d8ced2403e69a4901a0a15386d19a13b5 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Wed, 15 Oct 2008 16:08:59 +0000 Subject: phplint cleanup --- it_auto_prepend.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'it_auto_prepend.php') 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(); - */ } } -- cgit v1.2.3