20 if ( $this->
getVar(
'_ExistingDBSettings' ) ) {
24 $r = $this->parent->request;
25 if ( $r->wasPosted() ) {
28 if ( $status->isGood() ) {
29 $this->
setVar(
'_UpgradeDone',
false );
33 $this->parent->showStatusBox( $status );
39 $types =
"<ul class=\"config-settings-block\">\n";
40 $defaultType = $this->
getVar(
'wgDBtype' );
45 $dbSupport .=
wfMessage(
"config-dbsupport-$type" )->plain() .
"\n";
47 $this->
addHTML( $this->parent->getInfoBox(
48 wfMessage(
'config-support-info', trim( $dbSupport ) )->plain() ) );
52 $compiledDBs = $this->parent->getCompiledDBs();
53 if ( !in_array( $defaultType, $compiledDBs ) ) {
54 $defaultType = $compiledDBs[0];
59 foreach ( $compiledDBs as $type ) {
60 $installer = $this->parent->getDBInstaller( $type );
61 $types .=
"<div class=\"cdx-radio\"><div class=\"cdx-radio__wrapper\">";
66 $type == $defaultType,
69 'class' => [
'cdx-radio__input',
'dbRadio' ],
70 'rel' =>
"DB_wrapper_$type",
74 "\u{00A0}<span class=\"cdx-radio__icon\"></span>" .
75 Html::label( $installer->getReadableName(), $id, [
'class' =>
'cdx-radio__label' ] );
76 $types .=
"</div></div>";
78 $settings .= Html::openElement(
81 'id' =>
'DB_wrapper_' . $type,
82 'class' =>
'dbWrapper'
86 $installer->getConnectForm( $this->parent )->getHtml() .
91 $this->
addHTML( $this->parent->label(
'config-db-type',
false, $types ) . $settings );