Merge "Fix typo in 'log-action-filter-suppress-block'"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Thu, 16 Jun 2016 13:54:01 +0000 (13:54 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Thu, 16 Jun 2016 13:54:01 +0000 (13:54 +0000)
docs/hooks.txt
includes/specials/pagers/ContribsPager.php

index 1d11893..44f2551 100644 (file)
@@ -2866,6 +2866,12 @@ $id: User id number, only provided for backwards-compatibility
 $user: User object representing user contributions are being fetched for
 $sp: SpecialPage instance, providing context
 
+'SpecialContributions::formatRow::flags': Called before rendering a
+Special:Contributions row.
+$context: IContextSource object
+$row: Revision information from the database
+&$flags: List of flags on this row
+
 'SpecialContributions::getForm::filters': Called with a list of filters to render
 on Special:Contributions.
 $sp: SpecialContributions object, for context
index 8620eb1..f4f2748 100644 (file)
@@ -478,6 +478,8 @@ class ContribsPager extends ReverseChronologicalPager {
                        );
                        $classes = array_merge( $classes, $newClasses );
 
+                       Hooks::run( 'SpecialContributions::formatRow::flags', [ $this->getContext(), $row, &$flags ] );
+
                        $templateParams = [
                                'del' => $del,
                                'timestamp' => $d,