Merge "Add css $classes variable to the OldChangesListRecentChangesLine hook"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Thu, 10 Jan 2013 17:22:05 +0000 (17:22 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Thu, 10 Jan 2013 17:22:05 +0000 (17:22 +0000)
docs/hooks.txt
includes/ChangesList.php

index d5094a7..8905d7e 100644 (file)
@@ -1576,6 +1576,7 @@ return false to omit the line from RecentChanges and Watchlist special pages.
 &$changeslist: The OldChangesList instance.
 &$s: HTML of the form "<li>...</li>" containing one RC entry.
 &$rc: The RecentChange object.
+&$classes: array of css classes for the <li> element
 
 'OpenSearchUrls': Called when constructing the OpenSearch description XML. Hooks
 can alter or append to the array of URLs for search & suggestion formats.
index a2fff57..e98fcac 100644 (file)
@@ -682,7 +682,7 @@ class OldChangesList extends ChangesList {
                        $classes[] = Sanitizer::escapeClass( 'watchlist-'.$rc->mAttribs['rc_namespace'].'-'.$rc->mAttribs['rc_title'] );
                }
 
-               if ( !wfRunHooks( 'OldChangesListRecentChangesLine', array( &$this, &$s, $rc ) ) ) {
+               if ( !wfRunHooks( 'OldChangesListRecentChangesLine', array( &$this, &$s, $rc, &$classes ) ) ) {
                        wfProfileOut( __METHOD__ );
                        return false;
                }