$wgOut can no longer be a stub since r85278, so there's no need to check this with StubObject::isRealObject()

This commit is contained in:
Alexandre Emsenhuber 2011-05-08 08:50:11 +00:00
parent 1e7e23adfc
commit fe22bc1543

View 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();