jenkins-bot has submitted this change and it was merged.

Change subject: BlueSpice should not call deprecated 
Article::prepareTextForEdit()
......................................................................


BlueSpice should not call deprecated Article::prepareTextForEdit()

Bug: T146167
Change-Id: I65577e05cb4a588a0ef78cbf4fb992ae0c88b969
---
M PageAccess/PageAccess.class.php
1 file changed, 2 insertions(+), 1 deletion(-)

Approvals:
  Robert Vogel: Looks good to me, approved
  Daniel Kinzler: Looks good to me, but someone else must approve
  jenkins-bot: Verified



diff --git a/PageAccess/PageAccess.class.php b/PageAccess/PageAccess.class.php
index 00a902c..a7b3b76 100644
--- a/PageAccess/PageAccess.class.php
+++ b/PageAccess/PageAccess.class.php
@@ -53,7 +53,8 @@
 
        public function onArticleSave( &$article, &$user, &$text, &$summary, 
$minor, $watchthis, $sectionanchor, &$flags, &$status ) {
                # Prevent user from locking himself out of his own page
-               $oEditInfo = $article->prepareTextForEdit( $text, null, $user );
+               $content = ContentHandler::makeContent( $text, 
$article->getTitle() );
+               $oEditInfo = $article->prepareContentForEdit( $content, null, 
$user );
                $sAccessGroups = $oEditInfo->output->getProperty( 
'bs-page-access' );
                if ( !$this->checkAccessGroups( $user, $sAccessGroups ) ) {
                        $err[0] = 
'bs-pageaccess-error-not-member-of-given-groups';

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I65577e05cb4a588a0ef78cbf4fb992ae0c88b969
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceExtensions
Gerrit-Branch: master
Gerrit-Owner: Reedy <re...@wikimedia.org>
Gerrit-Reviewer: Daniel Kinzler <daniel.kinz...@wikimedia.de>
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

Reply via email to