Merge "Turn MessageBlobStore into a singleton instead of static functions"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Mon, 25 Aug 2014 11:39:09 +0000 (11:39 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Mon, 25 Aug 2014 11:39:09 +0000 (11:39 +0000)
1  2 
includes/cache/LocalisationCache.php
includes/installer/DatabaseUpdater.php

@@@ -686,7 -686,6 +686,7 @@@ class LocalisationCache 
         *
         * @param string $code
         * @param array $deps
 +       * @return array
         */
        protected function readSourceFilesAndRegisterDeps( $code, &$deps ) {
                global $IP;
                # HACK: If using a null (i.e. disabled) storage backend, we
                # can't write to the MessageBlobStore either
                if ( $purgeBlobs && !$this->store instanceof LCStoreNull ) {
-                       MessageBlobStore::clear();
+                       MessageBlobStore::getInstance()->clear();
                }
  
                wfProfileOut( __METHOD__ );
@@@ -907,7 -907,7 +907,7 @@@ abstract class DatabaseUpdater 
                if ( $wgLocalisationCacheConf['manualRecache'] ) {
                        $this->rebuildLocalisationCache();
                }
-               MessageBlobStore::clear();
+               MessageBlobStore::getInstance()->clear();
                $this->output( "done.\n" );
        }
  
  
        /**
         * Updates the timestamps in the transcache table
 +       * @return bool
         */
        protected function doUpdateTranscacheField() {
                if ( $this->updateRowExists( 'convert transcache field' ) ) {