Merge "Add hook to modify Special:Contributions lines"

This commit is contained in:
jenkins-bot 2016-06-16 13:27:16 +00:00 committed by Gerrit Code Review
commit 11027b8aa7
2 changed files with 8 additions and 0 deletions

View 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

View 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,