From ac1879e4d750b9258a8f5002df64d13cda6a6fd9 Mon Sep 17 00:00:00 2001 From: Max Semenik Date: Wed, 16 Nov 2011 15:21:44 +0000 Subject: [PATCH] Follow-up r101449 and friends: no need to consider LC rebuild a database update and especially it shouldn't be listed separately for every DB updater --- includes/installer/DatabaseUpdater.php | 3 ++- includes/installer/MysqlUpdater.php | 1 - includes/installer/OracleUpdater.php | 1 - includes/installer/SqliteUpdater.php | 1 - 4 files changed, 2 insertions(+), 4 deletions(-) diff --git a/includes/installer/DatabaseUpdater.php b/includes/installer/DatabaseUpdater.php index f86cd5c0ae..c8f5b50a2d 100644 --- a/includes/installer/DatabaseUpdater.php +++ b/includes/installer/DatabaseUpdater.php @@ -237,6 +237,7 @@ abstract class DatabaseUpdater { if( isset( $what['purge'] ) ) { $this->purgeCache(); + $this->rebuildLocalisationCache(); } if ( isset( $what['stats'] ) ) { $this->checkStats(); @@ -652,7 +653,7 @@ abstract class DatabaseUpdater { /** * Rebuilds the localisation cache */ - protected function doRebuildLocalisationCache() { + protected function rebuildLocalisationCache() { /** * @var $cl RebuildLocalisationCache */ diff --git a/includes/installer/MysqlUpdater.php b/includes/installer/MysqlUpdater.php index d0ab4120ea..5862aaf868 100644 --- a/includes/installer/MysqlUpdater.php +++ b/includes/installer/MysqlUpdater.php @@ -181,7 +181,6 @@ class MysqlUpdater extends DatabaseUpdater { array( 'modifyField', 'user_properties', 'up_property', 'patch-up_property.sql' ), array( 'addTable', 'uploadstash', 'patch-uploadstash.sql' ), array( 'addTable', 'user_former_groups', 'patch-user_former_groups.sql'), - array( 'doRebuildLocalisationCache' ), // 1.19 array( 'addTable', 'config', 'patch-config.sql' ), diff --git a/includes/installer/OracleUpdater.php b/includes/installer/OracleUpdater.php index 4898ca9d3c..72fd9e0a00 100644 --- a/includes/installer/OracleUpdater.php +++ b/includes/installer/OracleUpdater.php @@ -36,7 +36,6 @@ class OracleUpdater extends DatabaseUpdater { array( 'addIndex', 'user', 'i02', 'patch-user_email_index.sql' ), array( 'modifyField', 'user_properties', 'up_property', 'patch-up_property.sql' ), array( 'addTable', 'uploadstash', 'patch-uploadstash.sql' ), - array( 'doRebuildLocalisationCache' ), //1.19 array( 'addTable', 'config', 'patch-config.sql' ), diff --git a/includes/installer/SqliteUpdater.php b/includes/installer/SqliteUpdater.php index 2dc1505bcb..1b517a2457 100644 --- a/includes/installer/SqliteUpdater.php +++ b/includes/installer/SqliteUpdater.php @@ -59,7 +59,6 @@ class SqliteUpdater extends DatabaseUpdater { array( 'addIndex', 'user', 'user_email', 'patch-user_email_index.sql' ), array( 'addTable', 'uploadstash', 'patch-uploadstash.sql' ), array( 'addTable', 'user_former_groups', 'patch-user_former_groups.sql'), - array( 'doRebuildLocalisationCache' ), // 1.19 array( 'addTable', 'config', 'patch-config.sql' ), -- 2.20.1