Remove dangling $wgDBmysql5 usage from DatabaseMysqli
authorAaron Schulz <aschulz@wikimedia.org>
Wed, 21 Sep 2016 19:55:45 +0000 (12:55 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Wed, 21 Sep 2016 19:55:45 +0000 (12:55 -0700)
Change-Id: Iee21655e12eb3001496123ff8438adc1c39ecdf8

includes/libs/rdbms/database/DatabaseMysqli.php

index e468601..fb983bd 100644 (file)
@@ -54,8 +54,6 @@ class DatabaseMysqli extends DatabaseMysqlBase {
         * @throws DBConnectionError
         */
        protected function mysqlConnect( $realServer ) {
-               global $wgDBmysql5;
-
                # Avoid suppressed fatal error, which is very hard to track down
                if ( !function_exists( 'mysqli_init' ) ) {
                        throw new DBConnectionError( $this, "MySQLi functions missing,"
@@ -101,7 +99,7 @@ class DatabaseMysqli extends DatabaseMysqlBase {
                        $realServer = 'p:' . $realServer;
                }
 
-               if ( $wgDBmysql5 ) {
+               if ( $this->utf8Mode ) {
                        // Tell the server we're communicating with it in UTF-8.
                        // This may engage various charset conversions.
                        $mysqli->options( MYSQLI_SET_CHARSET_NAME, 'utf8' );