diff options
author | Urban Müller | 2008-10-15 16:08:59 +0000 |
---|---|---|
committer | Urban Müller | 2008-10-15 16:08:59 +0000 |
commit | 5db02f8d8ced2403e69a4901a0a15386d19a13b5 (patch) | |
tree | 1b022b87e1e80191809cd338f356e510fe012744 /it_auto_prepend.php | |
parent | 2a4b5c0e971f9ed3056b2d81b639dad0fd069b62 (diff) | |
download | itools-5db02f8d8ced2403e69a4901a0a15386d19a13b5.tar.gz itools-5db02f8d8ced2403e69a4901a0a15386d19a13b5.tar.bz2 itools-5db02f8d8ced2403e69a4901a0a15386d19a13b5.zip |
phplint cleanup
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(); - */ } } |