Reedy has uploaded a new change for review. https://gerrit.wikimedia.org/r/313257
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(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BlueSpiceExtensions refs/changes/57/313257/1 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: newchange Gerrit-Change-Id: I65577e05cb4a588a0ef78cbf4fb992ae0c88b969 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