From b5e64f5a6ed1c7160a6104097185cc486db3aa95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Hojtsy?= Date: Fri, 4 Jan 2008 17:19:04 +0000 Subject: #197720 by nedjo, scor, keith.smith, catch: inform installing users about PHP memory requirements of Drupal 6 --- includes/theme.maintenance.inc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'includes') 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'] .= '

'. st('Please check the error messages and try again.', array('!url' => request_uri())) .'

'; } + + // 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'] .= '

'. $title .':

'; + $variables['messages'] .= theme('status_messages', 'warning'); + } // Special handling of status messages if (isset($messages['status'])) { -- cgit v1.2.3