http://www.mediawiki.org/wiki/Special:Code/MediaWiki/72357
Revision: 72357
Author: tparscal
Date: 2010-09-04 07:54:55 +0000 (Sat, 04 Sep 2010)
Log Message:
-----------
Followup to r72349: fix database error caused by update.php indirectly (via
LocalisationCache::recache() and MessageBlobStore::clear()) trying to clear out
the msg_resource table before it's even created it.
Modified Paths:
--------------
trunk/phase3/includes/LocalisationCache.php
Modified: trunk/phase3/includes/LocalisationCache.php
===================================================================
--- trunk/phase3/includes/LocalisationCache.php 2010-09-04 06:46:50 UTC (rev
72356)
+++ trunk/phase3/includes/LocalisationCache.php 2010-09-04 07:54:55 UTC (rev
72357)
@@ -623,7 +623,11 @@
$this->store->finishWrite();
# Clear out the MessageBlobStore
- MessageBlobStore::clear();
+ # HACK: If using a null (i.e. disabled) storage backend, we
+ # can't write to the MessageBlobStore either
+ if ( !$this->store instanceof LCStore_Null ) {
+ MessageBlobStore::clear();
+ }
wfProfileOut( __METHOD__ );
}
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs