From 20d8afb50ce65bcea43ef5ddc5b4b309bcde15e4 Mon Sep 17 00:00:00 2001 From: Kunal Mehta Date: Fri, 1 Jun 2018 11:57:36 -0700 Subject: [PATCH] installer: Don't allow setting $wgDBmysql5 It was possible to pass --dbmysql5 to the command line installer to enable this experimental option. This removes that ability, and removes setting of $wgDBmysql5 in the generated LocalSettings.php, so new installs will fallback to the default of false. Bug: T196185 Change-Id: Id5ff69f493d14cf7b16157f729fbe4f4b4e2e8c8 (cherry picked from commit c9339ba552cb5f87586e7045b46519bd9db04fe0) --- includes/installer/CliInstaller.php | 1 - includes/installer/MysqlInstaller.php | 7 +------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/includes/installer/CliInstaller.php b/includes/installer/CliInstaller.php index 715f5dff1f..90ba3c479c 100644 --- a/includes/installer/CliInstaller.php +++ b/includes/installer/CliInstaller.php @@ -38,7 +38,6 @@ class CliInstaller extends Installer { 'dbpass' => 'wgDBpassword', 'dbprefix' => 'wgDBprefix', 'dbtableoptions' => 'wgDBTableOptions', - 'dbmysql5' => 'wgDBmysql5', 'dbport' => 'wgDBport', 'dbschema' => 'wgDBmwschema', 'dbpath' => 'wgSQLiteDataDir', diff --git a/includes/installer/MysqlInstaller.php b/includes/installer/MysqlInstaller.php index 6256204d97..d4dcdc2fec 100644 --- a/includes/installer/MysqlInstaller.php +++ b/includes/installer/MysqlInstaller.php @@ -40,7 +40,6 @@ class MysqlInstaller extends DatabaseInstaller { 'wgDBpassword', 'wgDBprefix', 'wgDBTableOptions', - 'wgDBmysql5', ]; protected $internalDefaults = [ @@ -671,7 +670,6 @@ class MysqlInstaller extends DatabaseInstaller { } public function getLocalSettings() { - $dbmysql5 = wfBoolToStr( $this->getVar( 'wgDBmysql5', true ) ); $prefix = LocalSettingsGenerator::escapePhpString( $this->getVar( 'wgDBprefix' ) ); $tblOpts = LocalSettingsGenerator::escapePhpString( $this->getTableOptions() ); @@ -679,9 +677,6 @@ class MysqlInstaller extends DatabaseInstaller { \$wgDBprefix = \"{$prefix}\"; # MySQL table options to use during installation or update -\$wgDBTableOptions = \"{$tblOpts}\"; - -# Experimental charset support for MySQL 5.0. -\$wgDBmysql5 = {$dbmysql5};"; +\$wgDBTableOptions = \"{$tblOpts}\";"; } } -- 2.20.1