Anomie has uploaded a new change for review.
https://gerrit.wikimedia.org/r/89099
Change subject: Make Special:MWOAuthManageMyGrants be not unlisted
......................................................................
Make Special:MWOAuthManageMyGrants be not unlisted
There seems to be no good reason for this to not be listed.
Bug: 55581
Change-Id: Id3403f2047fc6572eb3e17e607ae667f40db383e
---
M frontend/MWOAuthUI.setup.php
M frontend/specialpages/SpecialMWOAuthManageMyGrants.php
2 files changed, 3 insertions(+), 2 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/OAuth
refs/changes/99/89099/1
diff --git a/frontend/MWOAuthUI.setup.php b/frontend/MWOAuthUI.setup.php
index c05dd43..b837227 100644
--- a/frontend/MWOAuthUI.setup.php
+++ b/frontend/MWOAuthUI.setup.php
@@ -9,10 +9,11 @@
* @return void
*/
public static function unconditionalSetup() {
- global $wgSpecialPages, $wgHooks, $wgResourceModules;
+ global $wgSpecialPages, $wgSpecialPageGroups, $wgHooks,
$wgResourceModules;
$wgSpecialPages['MWOAuth'] = 'SpecialMWOAuth';
$wgSpecialPages['MWOAuthManageMyGrants'] =
'SpecialMWOAuthManageMyGrants';
+ $wgSpecialPageGroups['MWOAuthManageMyGrants'] = 'users';
$wgHooks['GetPreferences'][] =
'MWOAuthUIHooks::onGetPreferences';
diff --git a/frontend/specialpages/SpecialMWOAuthManageMyGrants.php
b/frontend/specialpages/SpecialMWOAuthManageMyGrants.php
index 9fe6d62..548aa73 100644
--- a/frontend/specialpages/SpecialMWOAuthManageMyGrants.php
+++ b/frontend/specialpages/SpecialMWOAuthManageMyGrants.php
@@ -22,7 +22,7 @@
* Special page for listing consumers this user granted access to and
* for manage the specific grants given or revoking access for the consumer
*/
-class SpecialMWOAuthManageMyGrants extends UnlistedSpecialPage {
+class SpecialMWOAuthManageMyGrants extends SpecialPage {
protected static $stageKeyMap = array(
MWOAuthConsumer::STAGE_PROPOSED => 'proposed',
MWOAuthConsumer::STAGE_REJECTED => 'rejected',
--
To view, visit https://gerrit.wikimedia.org/r/89099
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Id3403f2047fc6572eb3e17e607ae667f40db383e
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/OAuth
Gerrit-Branch: master
Gerrit-Owner: Anomie <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits