Bug 30934 - Warning: Invalid argument supplied for foreach() in /languages/Language.php on line 423
Doing a run of doRebuildLocalisationCache on each run of update.php
This commit is contained in:
parent
043f98a3e0
commit
8aaff6a976
4 changed files with 13 additions and 1 deletions
|
|
@ -619,4 +619,13 @@ abstract class DatabaseUpdater {
|
|||
$cl->execute();
|
||||
$this->output( "done.\n" );
|
||||
}
|
||||
|
||||
protected function doRebuildLocalisationCache() {
|
||||
global $wgLocalisationCacheConf;
|
||||
$wgLocalisationCacheConf['forceRecache'] = true;
|
||||
$cl = $this->maintenance->runChild( 'RebuildLocalisationCache', 'rebuildLocalisationCache.php' );
|
||||
$this->output( "Rebuilding Localisation Cache... " );
|
||||
$cl->execute();
|
||||
$this->output( "done.\n" );
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -181,6 +181,7 @@ 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' ),
|
||||
|
|
|
|||
|
|
@ -36,6 +36,7 @@ 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' ),
|
||||
|
|
@ -43,7 +44,7 @@ class OracleUpdater extends DatabaseUpdater {
|
|||
array( 'addTable', 'globaltemplatelinks', 'patch-globaltemplatelinks.sql' ),
|
||||
array( 'addTable', 'globalnamespaces', 'patch-globalnamespaces.sql' ),
|
||||
array( 'addTable', 'globalinterwiki', 'patch-globalinterwiki.sql' ),
|
||||
|
||||
|
||||
// till 2.0 i guess
|
||||
array( 'doRebuildDuplicateFunction' ),
|
||||
|
||||
|
|
|
|||
|
|
@ -59,6 +59,7 @@ 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' ),
|
||||
|
|
|
|||
Loading…
Reference in a new issue