r98618 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r98617‎ | r98618 | r98619 >
Date:18:20, 1 October 2011
Author:krinkle
Status:ok
Tags:
Comment:
Add support for namespaces in Special:RecentChanges subpage filter (bug 31297)
Modified paths:
  • /trunk/phase3/RELEASE-NOTES-1.19 (modified) (history)
  • /trunk/phase3/includes/specials/SpecialRecentchanges.php (modified) (history)

Diff [purge]

Index: trunk/phase3/RELEASE-NOTES-1.19
@@ -69,6 +69,7 @@
7070 * Some deprecated presentational html attributes will now be automatically converted to css.
7171 * (bug 31233) New OutputPage::addJsConfigVars() method to make the output page specific
7272 mw.config map extendable.
 73+* (bug 31297) Add support for namespaces in Special:RecentChanges subpage filter syntax.
7374
7475 === Bug fixes in 1.19 ===
7576 * $wgUploadNavigationUrl should be used for file redlinks if
Index: trunk/phase3/includes/specials/SpecialRecentchanges.php
@@ -232,6 +232,9 @@
233233 if( preg_match( '/^days=(\d+)$/', $bit, $m ) ) {
234234 $opts['days'] = $m[1];
235235 }
 236+ if( preg_match( '/^namespace=(\d+)$/', $bit, $m ) ) {
 237+ $opts['namespace'] = $m[1];
 238+ }
236239 }
237240 }
238241

Status & tagging log