From fe22bc154317b7187407f5ba918d1f4ce3a5f55d Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Sun, 8 May 2011 08:50:11 +0000 Subject: [PATCH] $wgOut can no longer be a stub since r85278, so there's no need to check this with StubObject::isRealObject() --- includes/GlobalFunctions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index bc87b9393e..a38d5a75f9 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -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(); -- 2.20.1