diff options
author | Gábor Hojtsy <gabor@hojtsy.hu> | 2008-01-04 17:19:04 +0000 |
---|---|---|
committer | Gábor Hojtsy <gabor@hojtsy.hu> | 2008-01-04 17:19:04 +0000 |
commit | b5e64f5a6ed1c7160a6104097185cc486db3aa95 (patch) | |
tree | 0b706cb1408b7eb26720ff9ffbb34436a8f135da /install.php | |
parent | d5916e806102a43ec4547b78b5da0f828806bfeb (diff) | |
download | brdo-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 'install.php')
-rw-r--r-- | install.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/install.php b/install.php index 70087c883..426493150 100644 --- a/install.php +++ b/install.php @@ -901,6 +901,18 @@ function install_check_requirements($profile, $verify) { } } } + if ($severity == REQUIREMENT_WARNING) { + + foreach ($requirements as $requirement) { + if (isset($requirement['severity']) && $requirement['severity'] == REQUIREMENT_WARNING) { + $message = $requirement['description']; + if (isset($requirement['value']) && $requirement['value']) { + $message .= ' ('. st('Currently using !item !version', array('!item' => $requirement['title'], '!version' => $requirement['value'])) .')'; + } + drupal_set_message($message, 'warning'); + } + } + } } /** |