31 return Status::newGood();
42 $wrapperStyle = $this->
getVar(
'_SameAccount' ) ?
'display: none' :
'';
43 $s =
"<span class=\"cdx-card\"><span class=\"cdx-card__text\">" .
46 [
'class' =>
'cdx-card__text__title' ],
47 wfMessage(
'config-db-web-account' )->text()
50 '_SameAccount',
'config-db-web-account-same',
51 [
'class' =>
'hideShowRadio cdx-checkbox__input',
'rel' =>
'dbOtherAccount' ]
53 Html::openElement(
'div', [
'id' =>
'dbOtherAccount',
'style' => $wrapperStyle ] ) .
54 $this->
getTextBox(
'wgDBuser',
'config-db-username' ) .
56 $this->webInstaller->getHelpBox(
'config-db-web-help' );
58 $s .= Html::warningBox(
wfMessage( $noCreateMsg )->plain(),
'config-warning-box' );
60 $s .= $this->
getCheckBox(
'_CreateDBAccount',
'config-db-web-create' );
62 $s .= Html::closeElement(
'div' ) .
"</span></span></span>";
74 [
'wgDBuser',
'wgDBpassword',
'_SameAccount',
'_CreateDBAccount' ]
77 if ( $this->
getVar(
'_SameAccount' ) ) {
78 $this->
setVar(
'wgDBuser', $this->
getVar(
'_InstallUser' ) );
79 $this->
setVar(
'wgDBpassword', $this->
getVar(
'_InstallPassword' ) );
82 if ( $this->
getVar(
'_CreateDBAccount' ) && strval( $this->
getVar(
'wgDBpassword' ) ) ==
'' ) {
83 return Status::newFatal(
'config-db-password-empty', $this->
getVar(
'wgDBuser' ) );
86 return Status::newGood();
wfMessage( $key,... $params)
This is the function for getting translated interface messages.