Alex Monk has submitted this change and it was merged. Change subject: Replacing deprecated wfMsg function. ......................................................................
Replacing deprecated wfMsg function. Replaced deprecated wfMsg function with wfMessage. Change-Id: I9fbc70adaf2e294a0d0d3a7d28a88d1218124b14 Signed-off-by: Bill Traynor <[email protected]> --- M AccessControl.php 1 file changed, 3 insertions(+), 3 deletions(-) Approvals: Alex Monk: Verified; Looks good to me, approved diff --git a/AccessControl.php b/AccessControl.php index ae577d7..947a52f 100644 --- a/AccessControl.php +++ b/AccessControl.php @@ -46,7 +46,7 @@ switch ( $action ) { default: $wgOut->setPageTitle( $article->getTitle() . "->" . $action ); - $wgOut->addWikiText( wfMsg( 'accesscontrol-actions-deny' )); + $wgOut->addWikiText( wfMessage( 'accesscontrol-actions-deny' )->text()); } return false; } @@ -104,7 +104,7 @@ function displayGroups() { /* Function replace the tag <accesscontrol> and his content, behind info about a protection this the page */ $style = "<p id=\"accesscontrol\" style=\"text-align:center;color:#BA0000;font-size:8pt\">"; - $text = wfMsg( 'accesscontrol-info' ); + $text = wfMessage( 'accesscontrol-info' )->text(); $style_end = "</p>"; $wgAllowInfo = $style . $text . $style_end; return $wgAllowInfo; @@ -189,7 +189,7 @@ // removing info about redirect from session after move.. unset( $_SESSION['redirect'] ); } - header( "Location: " . $wgScript . "/" . $wgSitename . ":" . wfMsg( $info ) ); + header( "Location: " . $wgScript . "/" . $wgSitename . ":" . wfMessage( $info )->text() ); } function fromTemplates( $string ) { -- To view, visit https://gerrit.wikimedia.org/r/150443 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I9fbc70adaf2e294a0d0d3a7d28a88d1218124b14 Gerrit-PatchSet: 2 Gerrit-Project: mediawiki/extensions/AccessControl Gerrit-Branch: master Gerrit-Owner: Wmat <[email protected]> Gerrit-Reviewer: Alex Monk <[email protected]> Gerrit-Reviewer: Want <[email protected]> _______________________________________________ MediaWiki-commits mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
