diff options
Diffstat (limited to 'includes')
-rw-r--r-- | includes/theme.maintenance.inc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/includes/theme.maintenance.inc b/includes/theme.maintenance.inc index 94d30cf88..753b4a9d5 100644 --- a/includes/theme.maintenance.inc +++ b/includes/theme.maintenance.inc @@ -124,6 +124,13 @@ function theme_install_page($content) { $variables['messages'] .= theme('status_messages', 'error'); $variables['content'] .= '<p>'. st('Please check the error messages and <a href="!url">try again</a>.', array('!url' => request_uri())) .'</p>'; } + + // Special handling of warning messages + if (isset($messages['warning'])) { + $title = count($messages['warning']) > 1 ? st('The following installation warnings should be carefully reviewed.') : st('The following installation warning should be carefully reviewed.'); + $variables['messages'] .= '<h4>'. $title .':</h4>'; + $variables['messages'] .= theme('status_messages', 'warning'); + } // Special handling of status messages if (isset($messages['status'])) { |