Index: trunk/phase3/includes/installer/Installer.i18n.php |
— | — | @@ -230,6 +230,7 @@ |
231 | 231 | 'config-header-oracle' => 'Oracle settings', |
232 | 232 | 'config-invalid-db-type' => 'Invalid database type', |
233 | 233 | 'config-missing-db-name' => 'You must enter a value for "Database name"', |
| 234 | + 'config-missing-db-host' => 'You must enter a value for "Database host"', |
234 | 235 | 'config-missing-db-server-oracle' => 'You must enter a value for "Database TNS"', |
235 | 236 | 'config-invalid-db-server-oracle' => 'Invalid database TNS "$1". |
236 | 237 | Use only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_) and dots (.).', |
Index: trunk/phase3/includes/installer/MysqlInstaller.php |
— | — | @@ -74,6 +74,9 @@ |
75 | 75 | |
76 | 76 | // Validate them. |
77 | 77 | $status = Status::newGood(); |
| 78 | + if ( !strlen( $newValues['wgDBserver'] ) ) { |
| 79 | + $status->fatal( 'config-missing-db-host' ); |
| 80 | + } |
78 | 81 | if ( !strlen( $newValues['wgDBname'] ) ) { |
79 | 82 | $status->fatal( 'config-missing-db-name' ); |
80 | 83 | } elseif ( !preg_match( '/^[a-z0-9_-]+$/i', $newValues['wgDBname'] ) ) { |