Index: trunk/extensions/OggHandler/OggHandler_body.php |
— | — | @@ -587,7 +587,7 @@ |
588 | 588 | return true; //continue normal if iframes are "off" (maybe throw a warning in the future) |
589 | 589 | |
590 | 590 | //make sure we are in the right namespace and iframe=true was called: |
591 | | - if( $wgTitle->getNamespace() == NS_FILE && |
| 591 | + if( is_object( $wgTitle ) && $wgTitle->getNamespace() == NS_FILE && |
592 | 592 | $wgRequest->getVal('iframe') == 'true' && |
593 | 593 | $wgEnableIframeEmbed && |
594 | 594 | $doOutput ){ |