diff --git a/core/update.php b/core/update.php index fba6b86f842938cda9384aa684a975bef6143850..607a1b7aa8de220e560e0f4950cfd99cc30b609f 100644 --- a/core/update.php +++ b/core/update.php @@ -225,7 +225,11 @@ function update_results_page() { $output .= "

Reminder: don't forget to set the \$settings['update_free_access'] value in your settings.php file back to FALSE.

"; } - $output .= theme('links', array('links' => update_helpful_links())); + $links = array( + '#theme' => 'links', + '#links' => update_helpful_links(), + ); + $output .= drupal_render($links); // Output a list of queries executed. if (!empty($_SESSION['update_results'])) { @@ -371,7 +375,13 @@ function update_task_list($active = NULL) { 'finished' => 'Review log', ); - drupal_add_region_content('sidebar_first', theme('task_list', array('items' => $tasks, 'active' => $active))); + $task_list = array( + '#theme' => 'task_list', + '#items' => $tasks, + '#active' => $active, + ); + + drupal_add_region_content('sidebar_first', drupal_render($task_list)); } /** @@ -404,10 +414,18 @@ function update_check_requirements($skip_warnings = FALSE) { if ($severity == REQUIREMENT_ERROR || ($severity == REQUIREMENT_WARNING && !$skip_warnings)) { update_task_list('requirements'); drupal_set_title('Requirements problem'); - $status_report = theme('status_report', array('requirements' => $requirements)); + $status = array( + '#theme' => 'status_report', + '#requirements' => $requirements, + ); + $status_report = drupal_render($status); $status_report .= 'Check the messages and try again.'; drupal_add_http_header('Content-Type', 'text/html; charset=utf-8'); - print theme('maintenance_page', array('content' => $status_report)); + $maintenance_page = array( + '#theme' => 'maintenance_page', + '#content' => $status_report, + ); + print drupal_render($maintenance_page); exit(); } } @@ -546,6 +564,11 @@ function update_check_requirements($skip_warnings = FALSE) { } else { drupal_add_http_header('Content-Type', 'text/html; charset=utf-8'); - print theme('maintenance_page', array('content' => $output, 'show_messages' => !$progress_page)); + $maintenance_page = array( + '#theme' => 'maintenance_page', + '#content' => $output, + '#show_messages' => !$progress_page, + ); + print drupal_render($maintenance_page); } }