Check for interface existence in wfLoadAllExtensions() too, otherwise if an extension...
authorRob Church <robchurch@users.mediawiki.org>
Sat, 20 Jan 2007 19:24:37 +0000 (19:24 +0000)
committerRob Church <robchurch@users.mediawiki.org>
Sat, 20 Jan 2007 19:24:37 +0000 (19:24 +0000)
includes/AutoLoader.php

index ff89b6c..55a90d3 100644 (file)
@@ -316,7 +316,7 @@ function wfLoadAllExtensions() {
        require_once( 'SpecialPage.php' );
        
        foreach( $wgAutoloadClasses as $class => $file ) {
-               if ( ! class_exists( $class ) ) {
+               if( !( class_exists( $class ) || interface_exists( $class ) ) ) {
                        require( $file );
                }
        }