Reedy has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/312085

Change subject: Replace WikiPage::doEdit()
......................................................................

Replace WikiPage::doEdit()

Bug: T145736
Change-Id: Ie592885cf300a4900ce5f344c3dd8854c651717f
---
M business/AccountConfirmSubmission.php
1 file changed, 4 insertions(+), 4 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ConfirmAccount 
refs/changes/85/312085/1

diff --git a/business/AccountConfirmSubmission.php 
b/business/AccountConfirmSubmission.php
index 578bc22..8b6ecf4 100644
--- a/business/AccountConfirmSubmission.php
+++ b/business/AccountConfirmSubmission.php
@@ -391,8 +391,8 @@
                # Create userpage!
                if ( $body !== '' ) {
                        $article = new WikiPage( $user->getUserPage() );
-                       $article->doEdit(
-                               $body,
+                       $article->doEditContent(
+                               ContentHandler::makeContent( $body, 
$article->getTitle() ),
                                wfMessage( 'confirmaccount-summary' 
)->inContentLanguage()->text(),
                                EDIT_MINOR
                        );
@@ -409,8 +409,8 @@
                                : $msgObj->text(); // custom message
                        # Add user welcome message!
                        $article = new WikiPage( $user->getTalkPage() );
-                       $article->doEdit(
-                               "{$welcome} ~~~~",
+                       $article->doEditContent(
+                               ContentHandler::makeContent( "{$welcome} ~~~~", 
$article->getTitle() ),
                                wfMessage( 'confirmaccount-wsum' 
)->inContentLanguage()->text(),
                                EDIT_MINOR,
                                false,

-- 
To view, visit https://gerrit.wikimedia.org/r/312085
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie592885cf300a4900ce5f344c3dd8854c651717f
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ConfirmAccount
Gerrit-Branch: master
Gerrit-Owner: Reedy <re...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to