Skip to content

Commit

Permalink
Replace Article::estimateRevisionCount call
Browse files Browse the repository at this point in the history
Article delegate to WikiPage, where estimateRevisionCount is deprecated

Bug: 68715
Change-Id: I01aa3e93065bd6da34e19a1c195d1c02158efdb6
  • Loading branch information
umherirrender committed Jul 30, 2014
1 parent 11d04fe commit b627d56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TweetANew.body.php
Expand Up @@ -111,7 +111,7 @@ public static function TweetANewEditMade( &$article, &$user, $text, $summary, $m
if ( ( !MWNamespace::isContent( $article->getTitle()->getNamespace() )
|| ( $minoredit !== 0 && $wgTweetANewTweet['SkipMinor'] )
&& !$wgRequest->getCheck( 'wpTweetANewEdit' ) )
|| $article->estimateRevisionCount() == 1
|| $article->getTitle()->estimateRevisionCount() == 1
) {
return true;
}
Expand Down

0 comments on commit b627d56

Please sign in to comment.