Index: trunk/phase3/includes/GlobalFunctions.php |
— | — | @@ -418,9 +418,9 @@ |
419 | 419 | |
420 | 420 | $fname = 'wfMsg'; |
421 | 421 | wfProfileIn( $fname ); |
422 | | - if ( $wgMessageCache ) { |
| 422 | + if ( is_object($wgMessageCache) ) { |
423 | 423 | $message = $wgMessageCache->get( $key, $useDB ); |
424 | | - } elseif ( $wgLang ) { |
| 424 | + } elseif ( is_object($wgLang) ) { |
425 | 425 | $message = $wgLang->getMessage( $key ); |
426 | 426 | } else { |
427 | 427 | wfDebug( "No language object when getting $key\n" ); |