Fix regression from r36376. $wgAllowCategorizedRecentChanges was broken.
authorChad Horohoe <demon@users.mediawiki.org>
Fri, 20 Jun 2008 12:41:25 +0000 (12:41 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Fri, 20 Jun 2008 12:41:25 +0000 (12:41 +0000)
RELEASE-NOTES
includes/specials/SpecialRecentchanges.php

index 2999c39..2e59116 100644 (file)
@@ -381,6 +381,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
   and multiple servers
 * (bug 14572) Redirects listed on file links on image pages no longer redirect.
 * (bug 14537) Change interwiki name for Old Church Slavonic (cu)
+* (bug 14583) Fix regression in recent changes "limit to certain categories."
 
 === API changes in 1.13 ===
 
index 16904b9..a97c34c 100644 (file)
@@ -401,7 +401,7 @@ class SpecialRecentChanges extends SpecialPage {
 }
 
 function rcFilterByCategories ( &$rows, FormOptions $opts ) {
-       $categories = array_map( 'trim', explode( "|" , $categories ) );
+       $categories = array_map( 'trim', explode( "|" , $opts['categories'] ) );
 
        if( empty($categories) ) {
                return;
@@ -409,7 +409,7 @@ function rcFilterByCategories ( &$rows, FormOptions $opts ) {
 
        # Filter categories
        $cats = array();
-       foreach ( $opts['categories'] AS $cat ) {
+       foreach ( $categories as $cat ) {
                $cat = trim( $cat );
                if ( $cat == "" ) continue;
                $cats[] = $cat;