Merge "Pass $classes in the ContributionsLineEnding hook"
authorAaron Schulz <aschulz@wikimedia.org>
Tue, 3 Jul 2012 17:45:25 +0000 (17:45 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Tue, 3 Jul 2012 17:45:25 +0000 (17:45 +0000)
docs/hooks.txt
includes/specials/SpecialContributions.php

index 3744462..7df2c39 100644 (file)
@@ -705,8 +705,9 @@ $user: user (object) whose email is being confirmed
 
 'ContributionsLineEnding': Called before a contributions HTML line is finished
 $page: SpecialPage object for contributions
-$ret: the HTML line
+&$ret: the HTML line
 $row: the DB row for this line
+&$classes: the classes to add to the surrounding <li>
 
 'ContributionsToolLinks': Change tool links above Special:Contributions
 $id: User identifier
index 9465037..50192ac 100644 (file)
@@ -866,7 +866,7 @@ class ContribsPager extends ReverseChronologicalPager {
                $ret .= " $tagSummary";
 
                // Let extensions add data
-               wfRunHooks( 'ContributionsLineEnding', array( &$this, &$ret, $row ) );
+               wfRunHooks( 'ContributionsLineEnding', array( $this, &$ret, $row, &$classes ) );
 
                $classes = implode( ' ', $classes );
                $ret = "<li class=\"$classes\">$ret</li>\n";