Legoktm has uploaded a new change for review.

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


Change subject: Show log extract on Special:WikiSets
......................................................................

Show log extract on Special:WikiSets

Bug: 34875
Change-Id: I32642c53c1bb3514e05bb3196647d006c9235626
---
M specials/SpecialWikiSets.php
1 file changed, 14 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/CentralAuth 
refs/changes/71/101471/1

diff --git a/specials/SpecialWikiSets.php b/specials/SpecialWikiSets.php
index 301c313..a46697a 100644
--- a/specials/SpecialWikiSets.php
+++ b/specials/SpecialWikiSets.php
@@ -196,6 +196,8 @@
 
                        $this->getOutput()->addHTML( Xml::buildForm( $form ) );
                }
+
+               $this->showLogFragment( $subpage );
        }
 
        /**
@@ -381,4 +383,16 @@
 
                $this->buildMainView( '<strong class="success">' . $this->msg( 
'centralauth-editset-success-delete' )->escaped() . '</strong>' );
        }
+
+       /**
+        * @param $group
+        */
+       protected function showLogFragment( $number ) {
+               $title = SpecialPage::getTitleFor( 'WikiSets', $number );
+               $logPage = new LogPage( 'gblrights' );
+               $out = $this->getOutput();
+               $out->addHTML( Xml::element( 'h2', null, 
$logPage->getName()->text() . "\n" ) );
+               LogEventsList::showLogExtract( $out, 'gblrights', 
$title->getPrefixedText() );
+       }
+
 }

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I32642c53c1bb3514e05bb3196647d006c9235626
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/CentralAuth
Gerrit-Branch: master
Gerrit-Owner: Legoktm <[email protected]>
Gerrit-Reviewer: jenkins-bot

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to