From b34c9f8060467dad86a8d64e630fdbb11c1a8fe8 Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Mon, 13 Apr 2009 12:16:29 +0000 Subject: [PATCH] (bug 18441) rebuildrecentchanges.inc no longer ignores $wgLogRestrictions. Also a related fixme, now build this list automatically from $wgLogTypes. --- RELEASE-NOTES | 1 + maintenance/rebuildrecentchanges.inc | 18 ++++-------------- 2 files changed, 5 insertions(+), 14 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 60f2bcf383..c39ec6b2ca 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -342,6 +342,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 18115) ForeignAPIRepo cache isn't working * Fixed a bug caused by LanguageConverter.php, which brings an abnormal '}-' after some parsed math syntax. +* (bug 18441) rebuildrecentchanges.inc no longer ignores $wgLogRestrictions == API changes in 1.15 == * (bug 16858) Revamped list=deletedrevs to make listing deleted contributions diff --git a/maintenance/rebuildrecentchanges.inc b/maintenance/rebuildrecentchanges.inc index 333676d685..420481c095 100644 --- a/maintenance/rebuildrecentchanges.inc +++ b/maintenance/rebuildrecentchanges.inc @@ -122,20 +122,10 @@ function rebuildRecentChangesTablePass3() print( "Loading from user, page, and logging tables...\n" ); - global $wgRCMaxAge; - // Some logs don't go in RC. This can't really detect all of those. - // At least do the basics logs for a standard install... - // FIXME: this needs to be maintained - $basicRCLogs = array( - 'newusers', - 'block', - 'protect', - 'rights', - 'delete', - 'upload', - 'move', - 'import', - 'merge' ); + global $wgRCMaxAge, $wgLogTypes, $wgLogRestrictions; + // Some logs don't go in RC. This should check for that + $baseRCLogs = array_diff( $wgLogTypes, array_keys( $wgLogRestrictions ) ); + // Escape...blah blah $selectLogs = array(); foreach( $basicRCLogs as $logtype ) { -- 2.20.1