From: Antoine Musso Date: Thu, 15 Sep 2011 20:57:43 +0000 (+0000) Subject: New hook RecentChangesListRecentChangesLine which let you customize an X-Git-Tag: 1.31.0-rc.0~27626 X-Git-Url: http://git.cyclocoop.org/data/modifier.php?a=commitdiff_plain;h=16acae654bfbd5d5ca0a67c88837044f40a4c824;p=lhc%2Fweb%2Fwiklou.git New hook RecentChangesListRecentChangesLine which let you customize an entire recent changes line for user with 'Enhanced recent changes' option It is equivalent to the existing hook OldChangesListRecentChangesLine Reported by finlay on IRC. --- diff --git a/RELEASE-NOTES-1.19 b/RELEASE-NOTES-1.19 index 6c87bc3b05..6949073ed0 100644 --- a/RELEASE-NOTES-1.19 +++ b/RELEASE-NOTES-1.19 @@ -61,6 +61,9 @@ production. to stop it from replace an already existing default sort, and suppress error. * (bug 18578) Rewrote revision delete related messages to allow better localisation +* New hook RecentChangesListRecentChangesLine which let you customize an + entire recent changes line for user with 'Enhanced recent changes' option + It is equivalent to the existing hook OldChangesListRecentChangesLine === Bug fixes in 1.19 === * $wgUploadNavigationUrl should be used for file redlinks if diff --git a/docs/hooks.txt b/docs/hooks.txt index 3955f413d7..48b1510acd 100644 --- a/docs/hooks.txt +++ b/docs/hooks.txt @@ -1303,10 +1303,19 @@ displayed in the message (bool) 'OldChangesListRecentChangesLine': Customize entire Recent Changes line. +you will also need to use the EnhancedChangesListRecentChangesLine to alter +the output for user of enhanced recent changes. &$changeslist: The OldChangesList instance. &$s: HTML of the form "
  • ...
  • " containing one RC entry. &$rc: The RecentChange object. +'RecentChangesListRecentChangesLine': Customize entire Recent Changes line. +you will also need to use the OldChangesListRecentChangesLine to alter +the output for user of regular recent changes. +&$changeslist: The EnhancedChangesList instance. +&$s: HTML of the form "
  • ...
  • " containing one RC entry. +&$rc: The RecentChange object. + 'OpenSearchUrls': Called when constructing the OpenSearch description XML. Hooks can alter or append to the array of URLs for search & suggestion formats. &$urls: array of associative arrays with Url element attributes diff --git a/includes/ChangesList.php b/includes/ChangesList.php index fe40cd49d6..1171c3d49d 100644 --- a/includes/ChangesList.php +++ b/includes/ChangesList.php @@ -741,6 +741,8 @@ class EnhancedChangesList extends ChangesList { array_push( $this->rc_cache[$secureName], $rc ); } + wfRunHooks( 'EnhancedChangesListRecentChangesLine', array(&$this, &$s, $rc) ); + wfProfileOut( __METHOD__ ); return $ret;