Followup to r72349: fix database error caused by update.php indirectly (via Localisat...
authorTrevor Parscal <tparscal@users.mediawiki.org>
Sat, 4 Sep 2010 07:54:55 +0000 (07:54 +0000)
committerTrevor Parscal <tparscal@users.mediawiki.org>
Sat, 4 Sep 2010 07:54:55 +0000 (07:54 +0000)
includes/LocalisationCache.php

index ff96c1f..1253caa 100644 (file)
@@ -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__ );
        }