Merge "Add hook to modify Special:Contributions lines"
This commit is contained in:
commit
11027b8aa7
2 changed files with 8 additions and 0 deletions
|
|
@ -2866,6 +2866,12 @@ $id: User id number, only provided for backwards-compatibility
|
||||||
$user: User object representing user contributions are being fetched for
|
$user: User object representing user contributions are being fetched for
|
||||||
$sp: SpecialPage instance, providing context
|
$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
|
'SpecialContributions::getForm::filters': Called with a list of filters to render
|
||||||
on Special:Contributions.
|
on Special:Contributions.
|
||||||
$sp: SpecialContributions object, for context
|
$sp: SpecialContributions object, for context
|
||||||
|
|
|
||||||
|
|
@ -478,6 +478,8 @@ class ContribsPager extends ReverseChronologicalPager {
|
||||||
);
|
);
|
||||||
$classes = array_merge( $classes, $newClasses );
|
$classes = array_merge( $classes, $newClasses );
|
||||||
|
|
||||||
|
Hooks::run( 'SpecialContributions::formatRow::flags', [ $this->getContext(), $row, &$flags ] );
|
||||||
|
|
||||||
$templateParams = [
|
$templateParams = [
|
||||||
'del' => $del,
|
'del' => $del,
|
||||||
'timestamp' => $d,
|
'timestamp' => $d,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue