public function &getConnection( $i, $groups = array(), $wiki = false ) {
wfProfileIn( __METHOD__ );
- if ( $i == DB_LAST ) {
- wfProfileOut( __METHOD__ );
- throw new MWException( 'Attempt to call ' . __METHOD__ .
- ' with deprecated server index DB_LAST' );
- } elseif ( $i === null || $i === false ) {
+ if ( $i === null || $i === false ) {
wfProfileOut( __METHOD__ );
throw new MWException( 'Attempt to call ' . __METHOD__ .
' with invalid server index' );
);
}
- /**
- * Deprecated function, typo in function name
- *
- * @deprecated since 1.18
- * @param DatabaseBase $conn
- */
- function closeConnecton( $conn ) {
- wfDeprecated( __METHOD__, '1.18' );
- $this->closeConnection( $conn );
- }
-
/**
* Close a connection
* Using this function makes sure the LoadBalancer knows the connection is closed.