From b627d561321178e359c134c437015bec978f7f30 Mon Sep 17 00:00:00 2001 From: umherirrender Date: Tue, 15 Jul 2014 14:43:24 +0200 Subject: [PATCH] Replace Article::estimateRevisionCount call Article delegate to WikiPage, where estimateRevisionCount is deprecated Bug: 68715 Change-Id: I01aa3e93065bd6da34e19a1c195d1c02158efdb6 --- TweetANew.body.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TweetANew.body.php b/TweetANew.body.php index f522875..4917476 100755 --- a/TweetANew.body.php +++ b/TweetANew.body.php @@ -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; }