summaryrefslogtreecommitdiff
path: root/includes/theme.maintenance.inc
diff options
context:
space:
mode:
authorGábor Hojtsy <gabor@hojtsy.hu>2008-01-04 17:19:04 +0000
committerGábor Hojtsy <gabor@hojtsy.hu>2008-01-04 17:19:04 +0000
commitb5e64f5a6ed1c7160a6104097185cc486db3aa95 (patch)
tree0b706cb1408b7eb26720ff9ffbb34436a8f135da /includes/theme.maintenance.inc
parentd5916e806102a43ec4547b78b5da0f828806bfeb (diff)
downloadbrdo-b5e64f5a6ed1c7160a6104097185cc486db3aa95.tar.gz
brdo-b5e64f5a6ed1c7160a6104097185cc486db3aa95.tar.bz2
#197720 by nedjo, scor, keith.smith, catch: inform installing users about PHP memory requirements of Drupal 6
Diffstat (limited to 'includes/theme.maintenance.inc')
-rw-r--r--includes/theme.maintenance.inc7
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'])) {