Aaron Schulz has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/91089


Change subject: Added log excepts to ManageMyGrants page
......................................................................

Added log excepts to ManageMyGrants page

Change-Id: I85241e24bfb42b6a5b576a6ade1464f5ed4d5dfc
---
M frontend/specialpages/SpecialMWOAuthManageMyGrants.php
1 file changed, 12 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/OAuth 
refs/changes/89/91089/1

diff --git a/frontend/specialpages/SpecialMWOAuthManageMyGrants.php 
b/frontend/specialpages/SpecialMWOAuthManageMyGrants.php
index 548aa73..60fbf1d 100644
--- a/frontend/specialpages/SpecialMWOAuthManageMyGrants.php
+++ b/frontend/specialpages/SpecialMWOAuthManageMyGrants.php
@@ -236,6 +236,18 @@
                        $this->getOutput()->addWikiMsg( 
"mwoauthmanagemygrants-success-$action" );
                        $this->getOutput()->returnToMain();
                }
+
+               $out = $this->getOutput();
+               // Show all of the status updates
+               $logPage = new LogPage( 'mwoauthconsumer' );
+               $out->addHTML( Xml::element( 'h2', null, 
$logPage->getName()->text() ) );
+               LogEventsList::showLogExtract( $out, 'mwoauthconsumer', '', '',
+                       array(
+                               'conds'  => array(
+                                       'ls_field' => 'OAuthConsumer', 
'ls_value' => $cmr->get( 'consumerKey' ) ),
+                               'flags'  => LogEventsList::NO_EXTRA_USER_LINKS
+                       )
+               );
        }
 
        /**

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I85241e24bfb42b6a5b576a6ade1464f5ed4d5dfc
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

Reply via email to