aboutsummaryrefslogtreecommitdiffstats
path: root/includes/db/DatabaseMssql.php
diff options
context:
space:
mode:
authorKunal Mehta <legoktm@gmail.com>2015-06-10 11:29:05 -0700
committerBryanDavis <bdavis@wikimedia.org>2015-06-11 18:49:29 +0000
commitf6e5079a6964b10deff40c3224957cab2474dde7 (patch)
treef729355ec37ffb7c4acaf9ce091d1c89ee5b9036 /includes/db/DatabaseMssql.php
parentc403d4838dc8662d62902ced3713c1d9be6309cc (diff)
downloadmediawikicore-f6e5079a6964b10deff40c3224957cab2474dde7.tar.gz
mediawikicore-f6e5079a6964b10deff40c3224957cab2474dde7.zip
Use mediawiki/at-ease library for suppressing warnings
wfSuppressWarnings() and wfRestoreWarnings() were split out into a separate library. All usages in core were replaced with the new functions, and the wf* global functions are marked as deprecated. Additionally, some uses of @ were replaced due to composer's autoloader being loaded even earlier. Ie1234f8c12693408de9b94bf6f84480a90bd4f8e adds the library to mediawiki/vendor. Bug: T100923 Change-Id: I5c35079a0a656180852be0ae6b1262d40f6534c4
Diffstat (limited to 'includes/db/DatabaseMssql.php')
-rw-r--r--includes/db/DatabaseMssql.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/db/DatabaseMssql.php b/includes/db/DatabaseMssql.php
index 2b8f395f8f60..b5b682582a23 100644
--- a/includes/db/DatabaseMssql.php
+++ b/includes/db/DatabaseMssql.php
@@ -119,9 +119,9 @@ class DatabaseMssql extends DatabaseBase {
$connectionInfo['PWD'] = $password;
}
- wfSuppressWarnings();
+ MediaWiki\suppressWarnings();
$this->mConn = sqlsrv_connect( $server, $connectionInfo );
- wfRestoreWarnings();
+ MediaWiki\restoreWarnings();
if ( $this->mConn === false ) {
throw new DBConnectionError( $this, $this->lastError() );