From: Krinkle Date: Sat, 1 Oct 2011 18:20:31 +0000 (+0000) Subject: Add support for namespaces in Special:RecentChanges subpage filter (bug 31297) X-Git-Tag: 1.31.0-rc.0~27329 X-Git-Url: http://git.cyclocoop.org//%27%40script%40/%27?a=commitdiff_plain;h=fb5bf5fb5c36c2057862bb29f482bb96b03082ef;p=lhc%2Fweb%2Fwiklou.git Add support for namespaces in Special:RecentChanges subpage filter (bug 31297) --- 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]; + } } }