Index: trunk/phase3/includes/Skin.php |
— | — | @@ -1261,6 +1261,7 @@ |
1262 | 1262 | $oldid = $wgRequest->getVal( 'oldid' ); |
1263 | 1263 | $diff = $wgRequest->getVal( 'diff' ); |
1264 | 1264 | if ( ! $wgOut->isArticle() ) { return ''; } |
| 1265 | + if( !$wgArticle instanceOf Article ) { return ''; } |
1265 | 1266 | if ( isset( $oldid ) || isset( $diff ) ) { return ''; } |
1266 | 1267 | if ( 0 == $wgArticle->getID() ) { return ''; } |
1267 | 1268 | |