Skip to content
Snippets Groups Projects
Commit 9ded7aa4 authored by catch's avatar catch
Browse files

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

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

This reverts commit bf6fd922.
parent bf6fd922
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -581,10 +581,10 @@ class DatabaseTaskException extends Exception { ...@@ -581,10 +581,10 @@ class DatabaseTaskException extends Exception {
* @param $settings * @param $settings
* An array of settings that need to be updated. * 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'; $default_settings = 'sites/default/default.settings.php';
drupal_static_reset('conf_path'); 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. // Build list of setting names and insert the values into the global namespace.
$keys = array(); $keys = array();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment