Merge "installer: Don't allow setting $wgDBmysql5" into REL1_31
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Fri, 1 Jun 2018 21:49:45 +0000 (21:49 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Fri, 1 Jun 2018 21:49:45 +0000 (21:49 +0000)
1  2 
includes/installer/MysqlInstaller.php

@@@ -40,7 -40,6 +40,6 @@@ class MysqlInstaller extends DatabaseIn
                'wgDBpassword',
                'wgDBprefix',
                'wgDBTableOptions',
-               'wgDBmysql5',
        ];
  
        protected $internalDefaults = [
                        $this->setVar( '_MysqlCharset', reset( $charsets ) );
                }
  
 -              // Do charset selector
 -              if ( count( $charsets ) >= 2 ) {
 -                      // getRadioSet() builds a set of labeled radio buttons.
 -                      // For grep: The following messages are used as the item labels:
 -                      // config-mysql-binary, config-mysql-utf8
 -                      $s .= $this->getRadioSet( [
 -                              'var' => '_MysqlCharset',
 -                              'label' => 'config-mysql-charset',
 -                              'itemLabelPrefix' => 'config-mysql-',
 -                              'values' => $charsets
 -                      ] );
 -                      $s .= $this->parent->getHelpBox( 'config-mysql-charset-help' );
 -              }
 -
                return $s;
        }
  
        }
  
        public function getLocalSettings() {
-               $dbmysql5 = wfBoolToStr( $this->getVar( 'wgDBmysql5', true ) );
                $prefix = LocalSettingsGenerator::escapePhpString( $this->getVar( 'wgDBprefix' ) );
                $tblOpts = LocalSettingsGenerator::escapePhpString( $this->getTableOptions() );
  
  \$wgDBprefix = \"{$prefix}\";
  
  # MySQL table options to use during installation or update
- \$wgDBTableOptions = \"{$tblOpts}\";
- # Experimental charset support for MySQL 5.0.
- \$wgDBmysql5 = {$dbmysql5};";
+ \$wgDBTableOptions = \"{$tblOpts}\";";
        }
  }