From: Florian Date: Sat, 13 Aug 2016 18:23:40 +0000 (+0200) Subject: SpecialRecentChanges: Allow tagfilter=tag as "subpage" X-Git-Tag: 1.31.0-rc.0~5342^2 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=0f72d17e3a0e4f6b607417c7fbff028ad0e4748d;p=lhc%2Fweb%2Fwiklou.git 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 --- 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]; + } } }