Add support for namespaces in Special:RecentChanges subpage filter (bug 31297)
authorKrinkle <krinkle@users.mediawiki.org>
Sat, 1 Oct 2011 18:20:31 +0000 (18:20 +0000)
committerKrinkle <krinkle@users.mediawiki.org>
Sat, 1 Oct 2011 18:20:31 +0000 (18:20 +0000)
RELEASE-NOTES-1.19
includes/specials/SpecialRecentchanges.php

index f48e2b1..9321195 100644 (file)
@@ -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
index e53f048..c6b123b 100644 (file)
@@ -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];
+                       }
                }
        }