jenkins-bot has submitted this change and it was merged. Change subject: Replace Article::doEdit() ......................................................................
Replace Article::doEdit() Bug: T145736 Change-Id: Icede4a7f57032674cb4b8adbf9f540119b0d7537 --- M GroupManager/GroupManager.class.php M WantedArticle/WantedArticle.class.php 2 files changed, 7 insertions(+), 3 deletions(-) Approvals: Robert Vogel: Looks good to me, approved jenkins-bot: Verified diff --git a/GroupManager/GroupManager.class.php b/GroupManager/GroupManager.class.php index 1b26975..348af74 100644 --- a/GroupManager/GroupManager.class.php +++ b/GroupManager/GroupManager.class.php @@ -43,7 +43,7 @@ */ public function __construct() { wfProfileIn( 'BS::'.__METHOD__ ); - WikiAdmin::registerModule('GroupManager', array( + WikiAdmin::registerModule('GroupManager', array( 'image' => '/extensions/BlueSpiceExtensions/WikiAdmin/resources/images/bs-btn_gruppe_v1.png', 'level' => 'wikiadmin', 'message' => 'bs-groupmanager-label', @@ -129,7 +129,7 @@ } else { if ( !$oTitle->exists() ) { $oArticle = new Article( $oTitle ); - $oArticle->doEdit( $sGroup, '', EDIT_NEW ); + $oArticle->doEditContent( ContentHandler::makeContent( $sGroup, $oTitle ), '', EDIT_NEW ); } } } diff --git a/WantedArticle/WantedArticle.class.php b/WantedArticle/WantedArticle.class.php index 5eb8e4a..7a92c69 100644 --- a/WantedArticle/WantedArticle.class.php +++ b/WantedArticle/WantedArticle.class.php @@ -488,7 +488,11 @@ $aWikiLinks[] = '*[['.$sLinkText.']]'.( !empty($aWish['signature']) ? $aWish['signature'] : ' '); } - return $oArticle->doEdit( implode( "\n", $aWikiLinks), $sSummary, EDIT_FORCE_BOT ); + return $oArticle->doEditContent( + ContentHandler::makeContent( implode( "\n", $aWikiLinks ), $oTitle ), + $sSummary, + EDIT_FORCE_BOT + ); } /** -- To view, visit https://gerrit.wikimedia.org/r/312103 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: Icede4a7f57032674cb4b8adbf9f540119b0d7537 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/BlueSpiceExtensions Gerrit-Branch: master Gerrit-Owner: Reedy <re...@wikimedia.org> Gerrit-Reviewer: Dvogel hallowelt <daniel.vo...@hallowelt.com> Gerrit-Reviewer: Ljonka <l.verhovs...@gmail.com> Gerrit-Reviewer: Mglaser <gla...@hallowelt.biz> Gerrit-Reviewer: Pwirth <wi...@hallowelt.biz> Gerrit-Reviewer: Robert Vogel <vo...@hallowelt.biz> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits