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

#697210 follow-up by deekayen, moshe weitzman: Changed Change die() instances to exit().

parent e1a00ff8
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
...@@ -1391,7 +1391,7 @@ function _locale_export_po($language = NULL, $output = NULL) { ...@@ -1391,7 +1391,7 @@ function _locale_export_po($language = NULL, $output = NULL) {
header("Content-Disposition: attachment; filename=$filename"); header("Content-Disposition: attachment; filename=$filename");
header("Content-Type: text/plain; charset=utf-8"); header("Content-Type: text/plain; charset=utf-8");
print $output; print $output;
exit(); drupal_exit();
} }
/** /**
......
...@@ -60,7 +60,8 @@ function xmlrpc_server($callbacks) { ...@@ -60,7 +60,8 @@ function xmlrpc_server($callbacks) {
$data = file_get_contents('php://input'); $data = file_get_contents('php://input');
if (!$data) { if (!$data) {
exit('XML-RPC server accepts POST requests only.'); print 'XML-RPC server accepts POST requests only.';
drupal_exit();
} }
$xmlrpc_server->message = xmlrpc_message($data); $xmlrpc_server->message = xmlrpc_message($data);
if (!xmlrpc_message_parse($xmlrpc_server->message)) { if (!xmlrpc_message_parse($xmlrpc_server->message)) {
......
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