(bug 18441) rebuildrecentchanges.inc no longer ignores $wgLogRestrictions. Also a...
authorChad Horohoe <demon@users.mediawiki.org>
Mon, 13 Apr 2009 12:16:29 +0000 (12:16 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Mon, 13 Apr 2009 12:16:29 +0000 (12:16 +0000)
RELEASE-NOTES
maintenance/rebuildrecentchanges.inc

index 60f2bcf..c39ec6b 100644 (file)
@@ -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
index 333676d..420481c 100644 (file)
@@ -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 ) {