X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Finstaller%2FDatabaseInstaller.php;h=ce7e29ddb54ec65f88b5b377d76b56683f1b3277;hb=33415e2930b8e583fe81ec026608c0af523f7afe;hp=8b94d977a60964c25c539192785649a0a655f93f;hpb=9d9b2e385414c4cde629e8745088dfa48a61f12f;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/installer/DatabaseInstaller.php b/includes/installer/DatabaseInstaller.php index 8b94d977a6..ce7e29ddb5 100644 --- a/includes/installer/DatabaseInstaller.php +++ b/includes/installer/DatabaseInstaller.php @@ -177,6 +177,7 @@ abstract class DatabaseInstaller { * This will return a cached connection if one is available. * * @return Status + * @suppress PhanUndeclaredMethod */ public function getConnection() { if ( $this->db ) { @@ -341,6 +342,7 @@ abstract class DatabaseInstaller { public function setupSchemaVars() { $status = $this->getConnection(); if ( $status->isOK() ) { + // @phan-suppress-next-line PhanUndeclaredMethod $status->value->setSchemaVars( $this->getSchemaVars() ); } else { $msg = __METHOD__ . ': unexpected error while establishing' @@ -688,7 +690,7 @@ abstract class DatabaseInstaller { $this->getPasswordBox( 'wgDBpassword', 'config-db-password' ) . $this->parent->getHelpBox( 'config-db-web-help' ); if ( $noCreateMsg ) { - $s .= $this->parent->getWarningBox( wfMessage( $noCreateMsg )->plain() ); + $s .= Html::warningBox( wfMessage( $noCreateMsg )->plain(), 'config-warning-box' ); } else { $s .= $this->getCheckBox( '_CreateDBAccount', 'config-db-web-create' ); }