$wgOut can no longer be a stub since r85278, so there's no need to check this with...
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sun, 8 May 2011 08:50:11 +0000 (08:50 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sun, 8 May 2011 08:50:11 +0000 (08:50 +0000)
includes/GlobalFunctions.php

index bc87b93..a38d5a7 100644 (file)
@@ -192,7 +192,7 @@ function wfDebug( $text, $logonly = false ) {
        if ( ( $wgDebugComments || $wgShowDebug ) && !$logonly ) {
                $cache[] = $text;
 
-               if ( isset( $wgOut ) && StubObject::isRealObject( $wgOut ) ) {
+               if ( isset( $wgOut ) && is_object( $wgOut ) ) {
                        // add the message and any cached messages to the output
                        array_map( array( $wgOut, 'debug' ), $cache );
                        $cache = array();