Index: trunk/phase3/includes/AutoLoader.php |
— | — | @@ -463,6 +463,14 @@ |
464 | 464 | |
465 | 465 | ); |
466 | 466 | |
| 467 | + /** |
| 468 | + * autoload - take a class name and attempt to load it |
| 469 | + * |
| 470 | + * @param string $className Name of class we're looking for. |
| 471 | + * @return bool Returning false is important on failure as |
| 472 | + * it allows Zend to try and look in other registered autoloaders |
| 473 | + * as well. |
| 474 | + */ |
467 | 475 | static function autoload( $className ) { |
468 | 476 | global $wgAutoloadClasses; |
469 | 477 | |
— | — | @@ -484,7 +492,7 @@ |
485 | 493 | if ( !$filename ) { |
486 | 494 | # Give up |
487 | 495 | wfProfileOut( __METHOD__ ); |
488 | | - return; |
| 496 | + return false; |
489 | 497 | } |
490 | 498 | } |
491 | 499 | |
— | — | @@ -495,6 +503,7 @@ |
496 | 504 | } |
497 | 505 | require( $filename ); |
498 | 506 | wfProfileOut( __METHOD__ ); |
| 507 | + return true; |
499 | 508 | } |
500 | 509 | |
501 | 510 | static function loadAllExtensions() { |