From c057e7f1314890bcc0dc231407e838e524507dff Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Fri, 20 Jun 2008 12:41:25 +0000 Subject: [PATCH] Fix regression from r36376. $wgAllowCategorizedRecentChanges was broken. --- RELEASE-NOTES | 1 + includes/specials/SpecialRecentchanges.php | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 2999c390c1..2e591162aa 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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 === diff --git a/includes/specials/SpecialRecentchanges.php b/includes/specials/SpecialRecentchanges.php index 16904b9f47..a97c34ccab 100644 --- a/includes/specials/SpecialRecentchanges.php +++ b/includes/specials/SpecialRecentchanges.php @@ -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; -- 2.20.1