Skip to content
Snippets Groups Projects
Commit 9a98523a authored by Angie Byron's avatar Angie Byron
Browse files

#761212 by jbrown: Fixed Always use DRUPAL_ROOT instead of getcwd()

parent fbd6ffbf
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
......@@ -3057,7 +3057,7 @@ function &drupal_register_shutdown_function($callback = NULL) {
$args = func_get_args();
array_shift($args);
// Save callback and arguments
$callbacks[] = array('callback' => $callback, 'arguments' => $args, 'cwd' => getcwd());
$callbacks[] = array('callback' => $callback, 'arguments' => $args, 'cwd' => DRUPAL_ROOT);
}
return $callbacks;
}
......
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