Commit cbc876dd authored by catch's avatar catch
Browse files

Issue #2177651 by joelpittet, InternetDevels: Replace theme() with drupal_render() in errors.inc.

parent 08eb55f4
......@@ -222,7 +222,11 @@ function _drupal_log_error($error, $fatal = FALSE) {
install_display_output($message, $GLOBALS['install_state']);
}
else {
$output = theme('maintenance_page', array('content' => $message));
$output = array(
'#theme' => 'maintenance_page',
'#content' => $message,
);
$output = drupal_render($output);
}
$response = new Response($output, 500);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment