From ea8b855c2ee90df4e34f5daa84da6590391d4a83 Mon Sep 17 00:00:00 2001 From: Trevor Parscal Date: Sat, 4 Sep 2010 07:54:55 +0000 Subject: [PATCH] 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. --- includes/LocalisationCache.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/includes/LocalisationCache.php b/includes/LocalisationCache.php index ff96c1f7d0..1253caaf90 100644 --- a/includes/LocalisationCache.php +++ b/includes/LocalisationCache.php @@ -623,7 +623,11 @@ class LocalisationCache { $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__ ); } -- 2.20.1