Gerrit Patch Uploader has uploaded a new change for review. https://gerrit.wikimedia.org/r/187354
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: I6ebf93291c5af594901ce6a244579c46aa973302 --- M MobileFrontend.php M includes/MobileFrontend.hooks.php 2 files changed, 5 insertions(+), 3 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MobileFrontend refs/changes/54/187354/1 diff --git a/MobileFrontend.php b/MobileFrontend.php index 2a3c0f4..0ac215a 100644 --- a/MobileFrontend.php +++ b/MobileFrontend.php @@ -133,6 +133,7 @@ $wgHooks['ResourceLoaderGetConfigVars'][] = 'MobileFrontendHooks::onResourceLoaderGetConfigVars'; $wgHooks['SpecialPage_initList'][] = 'MobileFrontendHooks::onSpecialPage_initList'; $wgHooks['ListDefinedTags'][] = 'MobileFrontendHooks::onListDefinedTags'; +$wgHooks['ChangeTagsListActive'][] = 'MobileFrontendHooks::onListDefinedTags'; $wgHooks['RecentChange_save'][] = 'MobileFrontendHooks::onRecentChange_save'; $wgHooks['AbuseFilter-generateUserVars'][] = 'MobileFrontendHooks::onAbuseFilterGenerateUserVars'; $wgHooks['AbuseFilter-builder'][] = 'MobileFrontendHooks::onAbuseFilterBuilder'; diff --git a/includes/MobileFrontend.hooks.php b/includes/MobileFrontend.hooks.php index 55517c7..ca1a0b6 100644 --- a/includes/MobileFrontend.hooks.php +++ b/includes/MobileFrontend.hooks.php @@ -407,10 +407,11 @@ } /** - * 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( &$tags ) { @@ -422,8 +423,8 @@ /** * RecentChange_save hook handler that tags mobile changes * @see https://www.mediawiki.org/wiki/Manual:Hooks/RecentChange_save - * @param RecentChange $rc * + * @param RecentChange $rc * @return bool */ public static function onRecentChange_save( RecentChange $rc ) { -- To view, visit https://gerrit.wikimedia.org/r/187354 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I6ebf93291c5af594901ce6a244579c46aa973302 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/MobileFrontend Gerrit-Branch: master Gerrit-Owner: Gerrit Patch Uploader <gerritpatchuploa...@gmail.com> Gerrit-Reviewer: Gerrit Patch Uploader <gerritpatchuploa...@gmail.com> Gerrit-Reviewer: TTO <at.li...@live.com.au> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits