* (bug 13040) Gender-aware user namespace aliases
[lhc/web/wiklou.git] / includes / ExternalStoreDB.php
index cb3c331..9fa7d1b 100644 (file)
@@ -40,7 +40,7 @@ class ExternalStoreDB {
        /** @todo Document.*/
        function &getMaster( $cluster ) {
                $lb =& $this->getLoadBalancer( $cluster );
-               return $lb->getConnection( DB_MASTER, array() );
+               return $lb->getConnection( DB_MASTER );
        }
 
        /** @todo Document.*/
@@ -123,9 +123,6 @@ class ExternalStoreDB {
         */
        function store( $cluster, $data ) {
                $dbw = $this->getMaster( $cluster );
-               #if( !$dbw ) {
-               #       return false;
-               #}
                $id = $dbw->nextSequenceValue( 'blob_blob_id_seq' );
                $dbw->insert( $this->getTable( $dbw ), 
                        array( 'blob_id' => $id, 'blob_text' => $data ),