From: aude Date: Thu, 10 Jan 2013 15:52:30 +0000 (+0000) Subject: Add css $classes variable to the OldChangesListRecentChangesLine hook X-Git-Tag: 1.31.0-rc.0~21079^2 X-Git-Url: https://git.cyclocoop.org/%28%28?a=commitdiff_plain;h=5e4f933ee0bb0474a27c26b4c3e12986b0604f51;p=lhc%2Fweb%2Fwiklou.git Add css $classes variable to the OldChangesListRecentChangesLine hook - will update LiquidThreads accordingly and do not see this hook used in any other extension in Wikimedia git repos. Change-Id: Ib8f297b39dbd5fba980bb0d4773d0e01f2b922f4 --- diff --git a/docs/hooks.txt b/docs/hooks.txt index c6630dcba5..8d699c1ea5 100644 --- a/docs/hooks.txt +++ b/docs/hooks.txt @@ -1580,6 +1580,7 @@ return false to omit the line from RecentChanges and Watchlist special pages. &$changeslist: The OldChangesList instance. &$s: HTML of the form "
  • ...
  • " containing one RC entry. &$rc: The RecentChange object. +&$classes: array of css classes for the
  • element 'OpenSearchUrls': Called when constructing the OpenSearch description XML. Hooks can alter or append to the array of URLs for search & suggestion formats. diff --git a/includes/ChangesList.php b/includes/ChangesList.php index a2fff57b67..e98fcac452 100644 --- a/includes/ChangesList.php +++ b/includes/ChangesList.php @@ -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; }