From: Chad Horohoe Date: Thu, 3 Feb 2011 21:01:35 +0000 (+0000) Subject: Remove now unused enableBackend() X-Git-Tag: 1.31.0-rc.0~32221 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmes_infos.php?a=commitdiff_plain;h=c22727da666bc85086f948cb534aa8df194c076e;p=lhc%2Fweb%2Fwiklou.git Remove now unused enableBackend() --- 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 */