jenkins-bot has submitted this change and it was merged. (
https://gerrit.wikimedia.org/r/327295 )
Change subject: Replaced "Article::getContent" deprecated in MediaWiki 1.21
......................................................................
Replaced "Article::getContent" deprecated in MediaWiki 1.21
Replaced "Article" usage, and replace "Article" with "WikiPage" in one place
Bug: T151973
Change-Id: Ice9f02e42bd1bb5ffd4a86d5ca864a03f0c34241
---
M SpamDiffTool.body.php
1 file changed, 4 insertions(+), 3 deletions(-)
Approvals:
Reedy: Looks good to me, approved
jenkins-bot: Verified
diff --git a/SpamDiffTool.body.php b/SpamDiffTool.body.php
index 05b910d..9205084 100644
--- a/SpamDiffTool.body.php
+++ b/SpamDiffTool.body.php
@@ -79,7 +79,8 @@
if ( $request->wasPosted() ) {
if ( $request->getCheck( 'confirm' ) ) {
$a = new Article( $sb );
- $text = $a->getContent();
+ $acontent = $a->getContentObject();
+ $text = ContentHandler::getContentText(
$acontent );
$blacklistPageId = $a->getId();
// If the blacklist page doesn't exist yet, use
the interface
@@ -258,8 +259,8 @@
}
} else {
if ( $title != '' ) {
- $a = new Article( $title );
- $text = $a->getContent( true );
+ $page = new WikiPage( $title );
+ $text = $page->getContent()->getNativeData();
}
}
--
To view, visit https://gerrit.wikimedia.org/r/327295
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ice9f02e42bd1bb5ffd4a86d5ca864a03f0c34241
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/SpamDiffTool
Gerrit-Branch: master
Gerrit-Owner: Filip <[email protected]>
Gerrit-Reviewer: Reedy <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits