);
+ /**
+ * autoload - take a class name and attempt to load it
+ *
+ * @param string $className Name of class we're looking for.
+ * @return bool Returning false is important on failure as
+ * it allows Zend to try and look in other registered autoloaders
+ * as well.
+ */
static function autoload( $className ) {
global $wgAutoloadClasses;
if ( !$filename ) {
# Give up
wfProfileOut( __METHOD__ );
- return;
+ return false;
}
}
}
require( $filename );
wfProfileOut( __METHOD__ );
+ return true;
}
static function loadAllExtensions() {