Reedy has uploaded a new change for review.

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

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(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BlueSpiceExtensions 
refs/changes/03/312103/1

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: newchange
Gerrit-Change-Id: Icede4a7f57032674cb4b8adbf9f540119b0d7537
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceExtensions
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