Revert "Issue #1313790 by greggles: Remove unused and undocumented from drupal_rewrite_settings()."

This reverts commit bf6fd9225d.
8.0.x
catch 2011-10-20 23:23:46 +09:00
parent bf6fd9225d
commit 9ded7aa4d8
1 changed files with 2 additions and 2 deletions

View File

@ -581,10 +581,10 @@ class DatabaseTaskException extends Exception {
* @param $settings
* An array of settings that need to be updated.
*/
function drupal_rewrite_settings($settings = array()) {
function drupal_rewrite_settings($settings = array(), $prefix = '') {
$default_settings = 'sites/default/default.settings.php';
drupal_static_reset('conf_path');
$settings_file = conf_path(FALSE) . '/settings.php';
$settings_file = conf_path(FALSE) . '/' . $prefix . 'settings.php';
// Build list of setting names and insert the values into the global namespace.
$keys = array();