$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:
parent
1e7e23adfc
commit
fe22bc1543
1 changed files with 1 additions and 1 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue