34 if ( $this->
getVar(
'_ExistingDBSettings' ) ) {
38 $r = $this->parent->request;
39 if ( $r->wasPosted() ) {
42 if ( $status->isGood() ) {
43 $this->
setVar(
'_UpgradeDone',
false );
47 $this->parent->showStatusBox( $status );
53 $types =
"<ul class=\"config-settings-block\">\n";
54 $defaultType = $this->
getVar(
'wgDBtype' );
59 $dbSupport .=
wfMessage(
"config-dbsupport-$type" )->plain() .
"\n";
61 $this->
addHTML( $this->parent->getInfoBox(
62 wfMessage(
'config-support-info', trim( $dbSupport ) )->plain() ) );
66 $compiledDBs = $this->parent->getCompiledDBs();
67 if ( !in_array( $defaultType, $compiledDBs ) ) {
68 $defaultType = $compiledDBs[0];
73 foreach ( $compiledDBs as $type ) {
74 $installer = $this->parent->getDBInstaller( $type );
75 $types .=
"<div class=\"cdx-radio\"><div class=\"cdx-radio__wrapper\">";
80 $type == $defaultType,
83 'class' => [
'cdx-radio__input',
'dbRadio' ],
84 'rel' =>
"DB_wrapper_$type",
88 "\u{00A0}<span class=\"cdx-radio__icon\"></span>" .
89 Html::label( $installer->getReadableName(), $id, [
'class' =>
'cdx-radio__label' ] );
90 $types .=
"</div></div>";
92 $settings .= Html::openElement(
95 'id' =>
'DB_wrapper_' . $type,
96 'class' =>
'dbWrapper'
100 $installer->getConnectForm( $this->parent )->getHtml() .
105 $this->
addHTML( $this->parent->label(
'config-db-type',
false, $types ) . $settings );