Anomie has submitted this change and it was merged.

Change subject: Implement ChangeTagsListActive hook
......................................................................


Implement ChangeTagsListActive hook

This allows users to visit Special:Tags or use the API to see
which change tags are still in active use.

The ChangeTagsListActive hook was introduced to core in
I77f476c8d0f32c80f720aa2c5e66869c81faa282

Change-Id: Ie5c02f1d1d9b24a822a95584018c6cf50e63aa7c
---
M WikimediaEvents.php
M WikimediaEventsHooks.php
2 files changed, 4 insertions(+), 1 deletion(-)

Approvals:
  Anomie: Verified; Looks good to me, approved



diff --git a/WikimediaEvents.php b/WikimediaEvents.php
index 73c8abd..ace0dee 100644
--- a/WikimediaEvents.php
+++ b/WikimediaEvents.php
@@ -106,4 +106,5 @@
 $wgHooks['MakeGlobalVariablesScript'][] = 
'WikimediaEventsHooks::onMakeGlobalVariablesScript';
 $wgHooks['ResourceLoaderGetConfigVars'][] = 
'WikimediaEventsHooks::onResourceLoaderGetConfigVars';
 $wgHooks['ListDefinedTags'][] = 'WikimediaEventsHooks::onListDefinedTags';
+$wgHooks['ChangeTagsListActive'][] = 'WikimediaEventsHooks::onListDefinedTags';
 $wgHooks['XAnalyticsSetHeader'][] = 'WikimediaEventsHooks::onXAnalyticsHeader';
diff --git a/WikimediaEventsHooks.php b/WikimediaEventsHooks.php
index f8df86d..fcd03ca 100644
--- a/WikimediaEventsHooks.php
+++ b/WikimediaEventsHooks.php
@@ -325,11 +325,13 @@
        }
 
        /**
-        * Register 'HHVM' change tag.
+        * Register 'HHVM' change tag and mark it as active.
         *
         * @param array &$tags
+        * @return bool
         */
        public static function onListDefinedTags( &$tags ) {
                $tags[] = 'HHVM';
+               return true;
        }
 }

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ie5c02f1d1d9b24a822a95584018c6cf50e63aa7c
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/WikimediaEvents
Gerrit-Branch: master
Gerrit-Owner: TTO <[email protected]>
Gerrit-Reviewer: Anomie <[email protected]>
Gerrit-Reviewer: TTO <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to