diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-03-28 07:25:36 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-03-28 07:25:36 +0000 |
commit | 3cc61288a6a2ef664386631d2eb93adc2cf15d8c (patch) | |
tree | 696fce4a194cba1480dd94e08521386200fa6098 /includes | |
parent | 3359fb5c1cd034aedc05fb961a3360f04a379c49 (diff) | |
download | brdo-3cc61288a6a2ef664386631d2eb93adc2cf15d8c.tar.gz brdo-3cc61288a6a2ef664386631d2eb93adc2cf15d8c.tar.bz2 |
- Patch #753754 by Garrett Albright, aspilicious, yoroy: error message when settings file does not exist should be hidden.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/database/database.inc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/includes/database/database.inc b/includes/database/database.inc index 64b22dc58..240c3c659 100644 --- a/includes/database/database.inc +++ b/includes/database/database.inc @@ -1459,27 +1459,27 @@ abstract class Database { _db_check_install_needed(); - $databaseInfo = $databases; - foreach ($databaseInfo as $index => $info) { - foreach ($databaseInfo[$index] as $target => $value) { + $database_info = $databases; + foreach ($database_info as $index => $info) { + foreach ($database_info[$index] as $target => $value) { // If there is no "driver" property, then we assume it's an array of // possible connections for this target. Pick one at random. That allows // us to have, for example, multiple slave servers. if (empty($value['driver'])) { - $databaseInfo[$index][$target] = $databaseInfo[$index][$target][mt_rand(0, count($databaseInfo[$index][$target]) - 1)]; + $database_info[$index][$target] = $database_info[$index][$target][mt_rand(0, count($database_info[$index][$target]) - 1)]; } } } if (!is_array(self::$databaseInfo)) { - self::$databaseInfo = $databaseInfo; + self::$databaseInfo = $database_info; } - // Merge the new $databaseInfo into the existing. + // Merge the new $database_info into the existing. // array_merge_recursive() cannot be used, as it would make multiple // database, user, and password keys in the same database array. else { - foreach ($databaseInfo as $database_key => $database_values) { + foreach ($database_info as $database_key => $database_values) { foreach ($database_values as $target => $target_values) { self::$databaseInfo[$database_key][$target] = $target_values; } |