From 04021a8e81ab74cd4bb1c414aa8a06a8f6bd2cfe Mon Sep 17 00:00:00 2001 From: Siebrand Mazeland Date: Sun, 17 Nov 2013 21:59:43 +0100 Subject: [PATCH] Remove underscore from class LocalisationCache_BulkLoad Part of program to remove underscores from class names. Checked core and 600+ extensions for occurrences. All uses are in core, and are updated in this change. Change-Id: Ib157c3cf209677718ff184552cf872b1d3f4e969 --- includes/AutoLoader.php | 2 +- includes/cache/LocalisationCache.php | 2 +- maintenance/rebuildLocalisationCache.php | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/includes/AutoLoader.php b/includes/AutoLoader.php index c94c46be45..ac6f7167ba 100644 --- a/includes/AutoLoader.php +++ b/includes/AutoLoader.php @@ -137,7 +137,7 @@ $wgAutoloadLocalClasses = array( 'Linker' => 'includes/Linker.php', 'LinkFilter' => 'includes/LinkFilter.php', 'LocalisationCache' => 'includes/cache/LocalisationCache.php', - 'LocalisationCache_BulkLoad' => 'includes/cache/LocalisationCache.php', + 'LocalisationCacheBulkLoad' => 'includes/cache/LocalisationCache.php', 'MagicWord' => 'includes/MagicWord.php', 'MagicWordArray' => 'includes/MagicWord.php', 'MailAddress' => 'includes/UserMailer.php', diff --git a/includes/cache/LocalisationCache.php b/includes/cache/LocalisationCache.php index 0b52cc4e9a..f52cf4e052 100644 --- a/includes/cache/LocalisationCache.php +++ b/includes/cache/LocalisationCache.php @@ -1273,7 +1273,7 @@ class LCStore_Null implements LCStore { * A localisation cache optimised for loading large amounts of data for many * languages. Used by rebuildLocalisationCache.php. */ -class LocalisationCache_BulkLoad extends LocalisationCache { +class LocalisationCacheBulkLoad extends LocalisationCache { /** * A cache of the contents of data files. * Core files are serialized to avoid using ~1GB of RAM during a recache. diff --git a/maintenance/rebuildLocalisationCache.php b/maintenance/rebuildLocalisationCache.php index b7f306b139..5833f8cd04 100644 --- a/maintenance/rebuildLocalisationCache.php +++ b/maintenance/rebuildLocalisationCache.php @@ -90,7 +90,7 @@ class RebuildLocalisationCache extends Maintenance { if ( $this->hasOption( 'outdir' ) ) { $conf['storeDirectory'] = $this->getOption( 'outdir' ); } - $lc = new LocalisationCache_BulkLoad( $conf ); + $lc = new LocalisationCacheBulkLoad( $conf ); $allCodes = array_keys( Language::fetchLanguageNames( null, 'mwfile' ) ); if ( $this->hasOption( 'lang' ) ) { @@ -149,7 +149,7 @@ class RebuildLocalisationCache extends Maintenance { * Helper function to rebuild list of languages codes. Prints the code * for each language which is rebuilt. * @param $codes array List of language codes to rebuild. - * @param $lc LocalisationCache Instance of LocalisationCache_BulkLoad (?) + * @param $lc LocalisationCache Instance of LocalisationCacheBulkLoad (?) * @param $force bool Rebuild up-to-date languages * @return int Number of rebuilt languages */ -- 2.20.1