http://www.mediawiki.org/wiki/Special:Code/MediaWiki/98618

Revision: 98618
Author:   krinkle
Date:     2011-10-01 18:20:31 +0000 (Sat, 01 Oct 2011)
Log Message:
-----------
Add support for namespaces in Special:RecentChanges subpage filter (bug 31297)

Modified Paths:
--------------
    trunk/phase3/RELEASE-NOTES-1.19
    trunk/phase3/includes/specials/SpecialRecentchanges.php

Modified: trunk/phase3/RELEASE-NOTES-1.19
===================================================================
--- trunk/phase3/RELEASE-NOTES-1.19     2011-10-01 16:18:17 UTC (rev 98617)
+++ trunk/phase3/RELEASE-NOTES-1.19     2011-10-01 18:20:31 UTC (rev 98618)
@@ -69,6 +69,7 @@
 * 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

Modified: trunk/phase3/includes/specials/SpecialRecentchanges.php
===================================================================
--- trunk/phase3/includes/specials/SpecialRecentchanges.php     2011-10-01 
16:18:17 UTC (rev 98617)
+++ trunk/phase3/includes/specials/SpecialRecentchanges.php     2011-10-01 
18:20:31 UTC (rev 98618)
@@ -232,6 +232,9 @@
                        if( preg_match( '/^days=(\d+)$/', $bit, $m ) ) {
                                $opts['days'] = $m[1];
                        }
+                       if( preg_match( '/^namespace=(\d+)$/', $bit, $m ) ) {
+                               $opts['namespace'] = $m[1];
+                       }
                }
        }
 


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

Reply via email to