jenkins-bot has submitted this change and it was merged.

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(-)

Approvals:
  Hoo man: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/specials/SpecialWikiSets.php b/specials/SpecialWikiSets.php
index 301c313..c370160 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 string $number
+        */
+       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: merged
Gerrit-Change-Id: I32642c53c1bb3514e05bb3196647d006c9235626
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/CentralAuth
Gerrit-Branch: master
Gerrit-Owner: Legoktm <[email protected]>
Gerrit-Reviewer: CSteipp <[email protected]>
Gerrit-Reviewer: Hoo man <[email protected]>
Gerrit-Reviewer: Victor Vasiliev <[email protected]>
Gerrit-Reviewer: jenkins-bot

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

Reply via email to