From fb5bf5fb5c36c2057862bb29f482bb96b03082ef Mon Sep 17 00:00:00 2001 From: Krinkle Date: Sat, 1 Oct 2011 18:20:31 +0000 Subject: [PATCH] Add support for namespaces in Special:RecentChanges subpage filter (bug 31297) --- RELEASE-NOTES-1.19 | 1 + includes/specials/SpecialRecentchanges.php | 3 +++ 2 files changed, 4 insertions(+) diff --git a/RELEASE-NOTES-1.19 b/RELEASE-NOTES-1.19 index f48e2b1e58..9321195f00 100644 --- a/RELEASE-NOTES-1.19 +++ b/RELEASE-NOTES-1.19 @@ -69,6 +69,7 @@ production. * Some deprecated presentational html attributes will now be automatically converted to css. * (bug 31233) New OutputPage::addJsConfigVars() method to make the output page specific mw.config map extendable. +* (bug 31297) Add support for namespaces in Special:RecentChanges subpage filter syntax. === Bug fixes in 1.19 === * $wgUploadNavigationUrl should be used for file redlinks if diff --git a/includes/specials/SpecialRecentchanges.php b/includes/specials/SpecialRecentchanges.php index e53f04839b..c6b123b0da 100644 --- a/includes/specials/SpecialRecentchanges.php +++ b/includes/specials/SpecialRecentchanges.php @@ -232,6 +232,9 @@ class SpecialRecentChanges extends IncludableSpecialPage { if( preg_match( '/^days=(\d+)$/', $bit, $m ) ) { $opts['days'] = $m[1]; } + if( preg_match( '/^namespace=(\d+)$/', $bit, $m ) ) { + $opts['namespace'] = $m[1]; + } } } -- 2.20.1