35 if ( $this->
getVar(
'_ExistingDBSettings' ) ) {
39 $r = $this->parent->request;
40 if ( $r->wasPosted() ) {
43 if ( $status->isGood() ) {
44 $this->
setVar(
'_UpgradeDone',
false );
48 $this->parent->showStatusBox( $status );
54 $types =
"<ul class=\"config-settings-block\">\n";
55 $defaultType = $this->
getVar(
'wgDBtype' );
60 $dbSupport .=
wfMessage(
"config-dbsupport-$type" )->plain() .
"\n";
62 $this->
addHTML( $this->parent->getInfoBox(
63 wfMessage(
'config-support-info', trim( $dbSupport ) )->plain() ) );
67 $compiledDBs = $this->parent->getCompiledDBs();
68 if ( !in_array( $defaultType, $compiledDBs ) ) {
69 $defaultType = $compiledDBs[0];
74 foreach ( $compiledDBs as $type ) {
75 $installer = $this->parent->getDBInstaller( $type );
76 $types .=
"<div class=\"cdx-radio\"><div class=\"cdx-radio__wrapper\">";
82 $type == $defaultType,
85 'class' =>
'cdx-radio__input dbRadio',
86 'rel' =>
"DB_wrapper_$type",
89 "\u{00A0}<span class=\"cdx-radio__icon\"></span>" .
90 Xml::label( $installer->getReadableName(), $id, [
'class' =>
'cdx-radio__label' ] );
91 $types .=
"</div></div>";
93 $settings .= Html::openElement(
96 'id' =>
'DB_wrapper_' . $type,
97 'class' =>
'dbWrapper'
101 $installer->getConnectForm( $this->parent )->getHtml() .
106 $types .=
"<br style=\"clear: left\"/>\n";
108 $this->
addHTML( $this->parent->label(
'config-db-type',
false, $types ) . $settings );