Aaron Schulz has submitted this change and it was merged.
Change subject: Give grep a chance to find the usages
......................................................................
Give grep a chance to find the usages
Change-Id: I74bdb15354ca11dd8156dde0893118f70cad71f3
---
M backend/MWOAuthUtils.php
M frontend/specialpages/SpecialMWOAuth.php
M frontend/specialpages/SpecialMWOAuthConsumerRegistration.php
M frontend/specialpages/SpecialMWOAuthManageConsumers.php
4 files changed, 14 insertions(+), 0 deletions(-)
Approvals:
Aaron Schulz: Verified; Looks good to me, approved
diff --git a/backend/MWOAuthUtils.php b/backend/MWOAuthUtils.php
index 4d230de..815f22a 100644
--- a/backend/MWOAuthUtils.php
+++ b/backend/MWOAuthUtils.php
@@ -135,6 +135,9 @@
* @return Message
*/
public static function grantName( $grant ) {
+ // Give grep a chance to find the usages:
+ // mwoauth-grant-editpage, mwoauth-grant-createeditmovepage,
+ // mwoauth-grant-uploadfile, mwoauth-grant-uploadeditmovefile
$msg = wfMessage( "mwoauth-grant-$grant" );
return $msg->exists() ? $msg : wfMessage(
"mwoauth-grant-generic", $grant );
}
diff --git a/frontend/specialpages/SpecialMWOAuth.php
b/frontend/specialpages/SpecialMWOAuth.php
index b511cb4..523277b 100644
--- a/frontend/specialpages/SpecialMWOAuth.php
+++ b/frontend/specialpages/SpecialMWOAuth.php
@@ -193,6 +193,10 @@
} 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
$list .= Html::element(
'li',
array(),
diff --git a/frontend/specialpages/SpecialMWOAuthConsumerRegistration.php
b/frontend/specialpages/SpecialMWOAuthConsumerRegistration.php
index f9efda2..f074a69 100644
--- a/frontend/specialpages/SpecialMWOAuthConsumerRegistration.php
+++ b/frontend/specialpages/SpecialMWOAuthConsumerRegistration.php
@@ -343,6 +343,9 @@
$cmr->get( 'name', function( $s ) use ( $cmr ) {
return $s . ' [' . $cmr->get( 'version'
) . ']'; } )
),
+ // Give grep a chance to find the usages:
+ // mwoauth-consumer-stage-proposed,
mwoauth-consumer-stage-rejected, mwoauth-consumer-stage-expired,
+ // mwoauth-consumer-stage-approved,
mwoauth-consumer-stage-disabled, mwoauth-consumer-stage-suppressed
'mwoauthconsumerregistration-stage' =>
$this->msg( "mwoauth-consumer-stage-$stageKey"
)->escaped(),
'mwoauthconsumerregistration-description' =>
htmlspecialchars(
diff --git a/frontend/specialpages/SpecialMWOAuthManageConsumers.php
b/frontend/specialpages/SpecialMWOAuthManageConsumers.php
index 2185830..4818e96 100644
--- a/frontend/specialpages/SpecialMWOAuthManageConsumers.php
+++ b/frontend/specialpages/SpecialMWOAuthManageConsumers.php
@@ -309,6 +309,10 @@
'stage' => array(
'type' => 'info',
'label-message' =>
'mwoauth-consumer-stage',
+ // Give grep a chance to find the
usages:
+ // mwoauth-consumer-stage-proposed,
mwoauth-consumer-stage-rejected,
+ // mwoauth-consumer-stage-expired,
mwoauth-consumer-stage-approved,
+ // mwoauth-consumer-stage-disabled,
mwoauth-consumer-stage-suppressed
'default' => $cmr->get( 'deleted' )
? $this->msg(
'mwoauth-consumer-stage-suppressed' )
: $this->msg(
'mwoauth-consumer-stage-' .
--
To view, visit https://gerrit.wikimedia.org/r/74299
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I74bdb15354ca11dd8156dde0893118f70cad71f3
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/OAuth
Gerrit-Branch: master
Gerrit-Owner: Shirayuki <[email protected]>
Gerrit-Reviewer: Aaron Schulz <[email protected]>
Gerrit-Reviewer: Siebrand <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits