From 0f72d17e3a0e4f6b607417c7fbff028ad0e4748d Mon Sep 17 00:00:00 2001 From: Florian Date: Sat, 13 Aug 2016 20:23:40 +0200 Subject: [PATCH] SpecialRecentChanges: Allow tagfilter=tag as "subpage" This allows an url like example.com/wiki/Special:RecentChanges/tagfilter=visualeditor to only show changes made with the VisualEditor (instead of using the long version like index.php?title=Special:RecentChanges&tagfilter=visualeditor). This also allows the transclusion of the Special:RecentChanges page with a tagfilter. Bug: T142878 Change-Id: Iaa749a556ccc422e79fbb2bac709fab45b3cc83d --- includes/specials/SpecialRecentchanges.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/includes/specials/SpecialRecentchanges.php b/includes/specials/SpecialRecentchanges.php index 8aff69089c..cd3299c210 100644 --- a/includes/specials/SpecialRecentchanges.php +++ b/includes/specials/SpecialRecentchanges.php @@ -159,6 +159,9 @@ class SpecialRecentChanges extends ChangesListSpecialPage { if ( preg_match( '/^namespace=(\d+)$/', $bit, $m ) ) { $opts['namespace'] = $m[1]; } + if ( preg_match( '/^tagfilter=(.*)$/', $bit, $m ) ) { + $opts['tagfilter'] = $m[1]; + } } } -- 2.20.1