Aude has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/129116

Change subject: Introduce EnhancedChangesCacheEntry hook
......................................................................

Introduce EnhancedChangesCacheEntry hook

This allows the cache grouping key to be modified, as
appropriate. (e.g. group entries added by extensions separate)

This also allows the RCCacheEntry formatting to be tweaked,
as needed for custom types of entries.

Bug: 53851
Change-Id: I0a765d855c8f86edcc3c364f44c12f22ed6dacc6
---
M RELEASE-NOTES-1.24
M includes/changes/EnhancedChangesList.php
2 files changed, 4 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/16/129116/1

diff --git a/RELEASE-NOTES-1.24 b/RELEASE-NOTES-1.24
index fd422fa..c5f4b97 100644
--- a/RELEASE-NOTES-1.24
+++ b/RELEASE-NOTES-1.24
@@ -11,6 +11,8 @@
 === Configuration changes in 1.24 ===
 
 === New features in 1.24 ===
+* EnhancedChangesCacheEntry hook added to allow customised grouping of
+  enhanced changes entries and formatting.
 
 === Bug fixes in 1.24 ===
 * (bug 62258) A bug was fixed in File::getUnscaledThumb when a height
diff --git a/includes/changes/EnhancedChangesList.php 
b/includes/changes/EnhancedChangesList.php
index cb9c225..aec4c34 100644
--- a/includes/changes/EnhancedChangesList.php
+++ b/includes/changes/EnhancedChangesList.php
@@ -127,6 +127,8 @@
                        $this->rc_cache[$cacheGroupingKey] = array();
                }
 
+               wfRunHooks( 'EnhancedChangesCacheEntry', array( $cacheEntry, 
$cacheGroupingKey ) );
+
                array_push( $this->rc_cache[$cacheGroupingKey], $cacheEntry );
        }
 

-- 
To view, visit https://gerrit.wikimedia.org/r/129116
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I0a765d855c8f86edcc3c364f44c12f22ed6dacc6
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Aude <aude.w...@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to