jenkins-bot has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/327298 )

Change subject: "Article::getContent()" is deprecated in MediaWiki 1.21
......................................................................


"Article::getContent()" is deprecated in MediaWiki 1.21

Replaced "Article::getContent()" usage

Bug: T151973
Change-Id: I0fba699b211baacdeaceeb20aa6c39d85339248e
---
M SimpleSecurity_body.php
1 file changed, 2 insertions(+), 1 deletion(-)

Approvals:
  Reedy: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/SimpleSecurity_body.php b/SimpleSecurity_body.php
index c7fccd8..7726ce1 100644
--- a/SimpleSecurity_body.php
+++ b/SimpleSecurity_body.php
@@ -48,7 +48,8 @@
                # Add extra available groups if $wgSecurityGroupsArticle is set
                if ( $wgSecurityGroupsArticle ) {
                        $groups = new Article( Title::newFromText( 
$wgSecurityGroupsArticle, NS_MEDIAWIKI ) );
-                       if ( preg_match_all( "/^\*?\s*(.+?)\s*(\|\s*(.+))?$/m", 
$groups->getContent(), $match ) ) {
+                       $groupsContent = $groups->getContentObject();
+                       if ( preg_match_all( "/^\*?\s*(.+?)\s*(\|\s*(.+))?$/m", 
ContentHandler::getContentText( $groupsContent ), $match ) ) {
                                foreach( $match[1] as $i => $k ) {
                                        $v = $match[3][$i];
                                        if ( $v ) 
$wgSecurityExtraGroups[strtolower( $k )] = $v;

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I0fba699b211baacdeaceeb20aa6c39d85339248e
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/SimpleSecurity
Gerrit-Branch: master
Gerrit-Owner: Filip <[email protected]>
Gerrit-Reviewer: Filip <[email protected]>
Gerrit-Reviewer: Reedy <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to