Fixed bugs
authorTim Starling <tstarling@users.mediawiki.org>
Sun, 2 Jul 2006 12:00:31 +0000 (12:00 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Sun, 2 Jul 2006 12:00:31 +0000 (12:00 +0000)
includes/AutoLoader.php

index ae9acbf..6bfbd30 100644 (file)
@@ -228,7 +228,8 @@ function __autoload($className) {
        }
 
        # Make an absolute path, this improves performance by avoiding some stat calls
-       if ( substr( $filename, 0, 1 ) == '/' || substr( $filename, 1, 1 ) == ':' ) {
+       if ( substr( $filename, 0, 1 ) != '/' && substr( $filename, 1, 1 ) != ':' ) {
+               global $IP;
                $filename = "$IP/$filename";
        }
        require( $filename );