New hook RecentChangesListRecentChangesLine which let you customize an
authorAntoine Musso <hashar@users.mediawiki.org>
Thu, 15 Sep 2011 20:57:43 +0000 (20:57 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Thu, 15 Sep 2011 20:57:43 +0000 (20:57 +0000)
entire recent changes line for user with 'Enhanced recent changes' option
It is equivalent to the existing hook OldChangesListRecentChangesLine

Reported by finlay on IRC.

RELEASE-NOTES-1.19
docs/hooks.txt
includes/ChangesList.php

index 6c87bc3..6949073 100644 (file)
@@ -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
index 3955f41..48b1510 100644 (file)
@@ -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 "<li>...</li>" 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 "<li>...</li>" 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
index fe40cd4..1171c3d 100644 (file)
@@ -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;