From 47768bfaa5faca5bcc84f0c08f6220007804c994 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Wed, 24 Nov 2010 18:14:25 +0000 Subject: #602484 by rschwab: Fix the report page when authorize.php completes an update manager operation. --- includes/theme.maintenance.inc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'includes/theme.maintenance.inc') diff --git a/includes/theme.maintenance.inc b/includes/theme.maintenance.inc index 74987edcf..7cc03126f 100644 --- a/includes/theme.maintenance.inc +++ b/includes/theme.maintenance.inc @@ -176,13 +176,14 @@ function theme_authorize_report($variables) { if (!empty($messages)) { $output .= '
'; foreach ($messages as $heading => $logs) { - $output .= '

' . check_plain($heading) . '

'; + $items = array(); foreach ($logs as $number => $log_message) { if ($number === '#abort') { continue; } - $output .= theme('authorize_message', array('message' => $log_message['message'], 'success' => $log_message['success'])); + $items[] = theme('authorize_message', array('message' => $log_message['message'], 'success' => $log_message['success'])); } + $output .= theme('item_list', array('items' => $items, 'title' => $heading)); } $output .= '
'; } @@ -200,14 +201,13 @@ function theme_authorize_report($variables) { * @ingroup themeable */ function theme_authorize_message($variables) { - $output = ''; $message = $variables['message']; $success = $variables['success']; if ($success) { - $output .= '
  • ' . $message . '
  • '; + $item = array('data' => $message, 'class' => array('success')); } else { - $output .= '
  • ' . t('Failed') . ': ' . $message . '
  • '; + $item = array('data' => '' . $message . '', 'class' => array('failure')); } - return $output; + return $item; } -- cgit v1.2.3