dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d7bb742
)
Better feedback if user forgets to pick a database type.
author
Greg Sabino Mullane
<greg@users.mediawiki.org>
Fri, 14 Jul 2006 20:58:34 +0000
(20:58 +0000)
committer
Greg Sabino Mullane
<greg@users.mediawiki.org>
Fri, 14 Jul 2006 20:58:34 +0000
(20:58 +0000)
config/index.php
patch
|
blob
|
history
diff --git
a/config/index.php
b/config/index.php
index
d64c13c
..
7e9315f
100644
(file)
--- a/
config/index.php
+++ b/
config/index.php
@@
-578,6
+578,11
@@
if( $conf->posted && ( 0 == count( $errs ) ) ) {
if ($conf->DBtype === $db)
$conf->DBtypename = $ourdb[$db]['fullname'];
}
if ($conf->DBtype === $db)
$conf->DBtypename = $ourdb[$db]['fullname'];
}
+ if ( ! strlen($conf->DBtype)) {
+ $errs["DBpicktype"] = "Please choose a database type";
+ continue;
+ }
+
if (! $conf->DBtypename) {
$errs["DBtype"] = "Unknown database type '$conf->DBtype'";
continue;
if (! $conf->DBtypename) {
$errs["DBtype"] = "Unknown database type '$conf->DBtype'";
continue;
@@
-1073,6
+1078,7
@@
if( count( $errs ) ) {
<div class="config-section">
<div class="config-input">
<label class='column'>Database type:</label>
<div class="config-section">
<div class="config-input">
<label class='column'>Database type:</label>
+<?php if (isset($errs['DBpicktype'])) print "<span class='error'>$errs[DBpicktype]</span>\n"; ?>
<ul class='plain'><?php database_picker($conf) ?></ul>
</div>
<ul class='plain'><?php database_picker($conf) ?></ul>
</div>