Aaron Schulz has uploaded a new change for review. https://gerrit.wikimedia.org/r/74935
Change subject: Use MWOAuthUtils::grantName() to fix broken messages ...................................................................... Use MWOAuthUtils::grantName() to fix broken messages Change-Id: I934e9ebde513b63ac88ad0aa13a89c41ecfc53ca --- M frontend/specialpages/SpecialMWOAuth.php 1 file changed, 2 insertions(+), 6 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/OAuth refs/changes/35/74935/1 diff --git a/frontend/specialpages/SpecialMWOAuth.php b/frontend/specialpages/SpecialMWOAuth.php index 11f84cf..7c1c6f9 100644 --- a/frontend/specialpages/SpecialMWOAuth.php +++ b/frontend/specialpages/SpecialMWOAuth.php @@ -207,15 +207,11 @@ ); } else { $list = ''; - foreach ( $grants as $grant) { - // Give grep a chance to find the usages: - // mwoauth-grants-editpages, mwoauth-grants-editmyinterface, mwoauth-grants-editinterface, - // mwoauth-grants-movepages, mwoauth-grants-createpages, mwoauth-grants-deletepages, - // mwoauth-grants-upload + foreach ( $grants as $grant ) { $list .= Html::element( 'li', array(), - $this->msg( "mwoauth-grants-$grant" )->text() + MWOAuthUtils::grantName( $grant ) ); } $html .= Html::rawElement( 'ul', array(), $list ); -- To view, visit https://gerrit.wikimedia.org/r/74935 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I934e9ebde513b63ac88ad0aa13a89c41ecfc53ca Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/OAuth Gerrit-Branch: master Gerrit-Owner: Aaron Schulz <asch...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits