r46377 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r46376‎ | r46377 | r46378 >
Date:20:29, 27 January 2009
Author:ialex
Status:ok
Tags:
Comment:
Don't use AutoLoader in class_exists() and interface_exists() in AutoLoader::loadAllExtensions() since we'll require() it if it doesn't exist
Modified paths:
  • /trunk/phase3/includes/AutoLoader.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/AutoLoader.php
@@ -581,7 +581,7 @@
582582 global $wgAutoloadClasses;
583583
584584 foreach( $wgAutoloadClasses as $class => $file ) {
585 - if( !( class_exists( $class ) || interface_exists( $class ) ) ) {
 585+ if( !( class_exists( $class, false ) || interface_exists( $class, false ) ) ) {
586586 require( $file );
587587 }
588588 }

Status & tagging log