From c22727da666bc85086f948cb534aa8df194c076e Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Thu, 3 Feb 2011 21:01:35 +0000 Subject: [PATCH] Remove now unused enableBackend() --- includes/db/DatabasePostgres.php | 2 ++ includes/db/LBFactory.php | 8 -------- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/includes/db/DatabasePostgres.php b/includes/db/DatabasePostgres.php index 9fbd85edb2..4cbcf9ad03 100644 --- a/includes/db/DatabasePostgres.php +++ b/includes/db/DatabasePostgres.php @@ -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 ) diff --git a/includes/db/LBFactory.php b/includes/db/LBFactory.php index f84a70e573..38d0d6fb32 100644 --- a/includes/db/LBFactory.php +++ b/includes/db/LBFactory.php @@ -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 */ -- 2.20.1