summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Pott2014-04-06 21:25:13 (GMT)
committerAlex Pott2014-04-06 21:25:13 (GMT)
commit8ebee83df63217b24c34e95c78e84d048284b18e (patch)
treeea899f8caeb71b0e7b53f40d97681ccfabfe80f2
parent0ac4b9108c59d17a7369ee0b04d18c3d106e0bcd (diff)
Issue #2228885 by Sweetchuck: Error message is attached to a non exists element when table prefix is wrong.
-rw-r--r--core/lib/Drupal/Core/Database/Install/Tasks.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/lib/Drupal/Core/Database/Install/Tasks.php b/core/lib/Drupal/Core/Database/Install/Tasks.php
index 7f5269f5b..35de943 100644
--- a/core/lib/Drupal/Core/Database/Install/Tasks.php
+++ b/core/lib/Drupal/Core/Database/Install/Tasks.php
@@ -299,7 +299,7 @@ abstract class Tasks {
// Verify the table prefix.
if (!empty($database['prefix']) && is_string($database['prefix']) && !preg_match('/^[A-Za-z0-9_.]+$/', $database['prefix'])) {
- $errors[$database['driver'] . '][advanced_options][db_prefix'] = t('The database table prefix you have entered, %prefix, is invalid. The table prefix can only contain alphanumeric characters, periods, or underscores.', array('%prefix' => $database['prefix']));
+ $errors[$database['driver'] . '][prefix'] = t('The database table prefix you have entered, %prefix, is invalid. The table prefix can only contain alphanumeric characters, periods, or underscores.', array('%prefix' => $database['prefix']));
}
return $errors;