TTO has uploaded a new change for review.
https://gerrit.wikimedia.org/r/187326
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: I39a97ab16ab328d0a9daff365bcdb15f3b684adc
---
M MobileApp.hooks.php
M MobileApp.php
2 files changed, 4 insertions(+), 2 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MobileApp
refs/changes/26/187326/1
diff --git a/MobileApp.hooks.php b/MobileApp.hooks.php
index ba75a54..586dd37 100644
--- a/MobileApp.hooks.php
+++ b/MobileApp.hooks.php
@@ -2,10 +2,11 @@
class MobileAppHooks {
/**
- * ListDefinedTags hook handler
+ * ListDefinedTags and ChangeTagsListActive hook handler
* @see https://www.mediawiki.org/wiki/Manual:Hooks/ListDefinedTags
- * @param array &$tags
+ * @see https://www.mediawiki.org/wiki/Manual:Hooks/ChangeTagsListActive
*
+ * @param array &$tags
* @return bool
*/
public static function onListDefinedTags( array &$tags ) {
diff --git a/MobileApp.php b/MobileApp.php
index 3627fe2..9a7f09d 100644
--- a/MobileApp.php
+++ b/MobileApp.php
@@ -31,6 +31,7 @@
$wgAutoloadClasses['MobileAppHooks'] = __DIR__ . '/MobileApp.hooks.php';
$wgHooks['ListDefinedTags'][] = 'MobileAppHooks::onListDefinedTags';
+$wgHooks['ChangeTagsListActive'][] = 'MobileAppHooks::onListDefinedTags';
$wgHooks['RecentChange_save'][] = 'MobileAppHooks::onRecentChange_save';
$wgResourceModules['mobile.app.site'] = array( 'class' =>
'MobileAppResourceLoaderModule' );
--
To view, visit https://gerrit.wikimedia.org/r/187326
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I39a97ab16ab328d0a9daff365bcdb15f3b684adc
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MobileApp
Gerrit-Branch: master
Gerrit-Owner: TTO <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits