Remove now unused enableBackend()
authorChad Horohoe <demon@users.mediawiki.org>
Thu, 3 Feb 2011 21:01:35 +0000 (21:01 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Thu, 3 Feb 2011 21:01:35 +0000 (21:01 +0000)
includes/db/DatabasePostgres.php
includes/db/LBFactory.php

index 9fbd85e..4cbcf9a 100644 (file)
@@ -192,6 +192,8 @@ class DatabasePostgres extends DatabaseBase {
                }
 
                $this->doQuery( "SET client_encoding='UTF8'" );
+               $this->doQuery( "SET datestyle = 'ISO, YMD'" );
+               $this->doQuery( "SET timezone = 'GMT'" );
 
                global $wgDBmwschema;
                if ( isset( $wgDBmwschema )
index f84a70e..38d0d6f 100644 (file)
@@ -22,14 +22,6 @@ abstract class LBFactory {
                self::$instance = new LBFactory_Fake( $wgLBFactoryConf );
        }
 
-       /**
-        * Resets the singleton for use if it's been disabled. Does nothing otherwise
-        */
-       public static function enableBackend() {
-               if( self::$instance instanceof LBFactory_Fake )
-                       self::$instance = null;
-       }
-
        /**
         * Get an LBFactory instance
         */