SpecialRecentChanges: Allow tagfilter=tag as "subpage"
authorFlorian <florian.schmidt.stargatewissen@gmail.com>
Sat, 13 Aug 2016 18:23:40 +0000 (20:23 +0200)
committerFlorianschmidtwelzow <florian.schmidt.stargatewissen@gmail.com>
Fri, 23 Sep 2016 19:42:08 +0000 (19:42 +0000)
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

index 8aff690..cd3299c 100644 (file)
@@ -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];
+                       }
                }
        }