Florianschmidtwelzow has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/304626

Change subject: SpecialRecentChanges: Allow tagfilter=tag as "subpage"
......................................................................

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
---
M includes/specials/SpecialRecentchanges.php
1 file changed, 3 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/26/304626/1

diff --git a/includes/specials/SpecialRecentchanges.php 
b/includes/specials/SpecialRecentchanges.php
index d4fb72c..e31686b 100644
--- a/includes/specials/SpecialRecentchanges.php
+++ b/includes/specials/SpecialRecentchanges.php
@@ -159,6 +159,9 @@
                        if ( preg_match( '/^namespace=(\d+)$/', $bit, $m ) ) {
                                $opts['namespace'] = $m[1];
                        }
+                       if ( preg_match( '/^tagfilter=(.*)$/', $bit, $m ) ) {
+                               $opts['tagfilter'] = $m[1];
+                       }
                }
        }
 

-- 
To view, visit https://gerrit.wikimedia.org/r/304626
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Iaa749a556ccc422e79fbb2bac709fab45b3cc83d
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Florianschmidtwelzow <florian.schmidt.stargatewis...@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to