summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--setup.php12
1 files changed, 11 insertions, 1 deletions
diff --git a/setup.php b/setup.php
index 818d6732fc..9172cd1601 100644
--- a/setup.php
+++ b/setup.php
@@ -191,13 +191,23 @@ if (empty($_POST['maxcpu']) || empty($_POST['maxmem'])) {
// Settings
foreach (array(
'file_uploads'=>i18n::translate('upload files'),
- 'date.timezone'=>i18n::translate('correct date and time in logs and messages'),
) as $setting=>$features) {
if (!ini_get($setting)) {
echo '<p class="bad">', i18n::translate('PHP setting "%1$s" is disabled. Without it, the following features will not work: %2$s. Please ask your server\'s administrator to enable it.', $setting, $features), '</p>';
$warnings=true;
}
}
+ // Settings for PHP5.3+ only
+ if (version_compare(PHP_VERSION, '5.3.0', '>=')) {
+ foreach (array(
+ 'date.timezone'=>i18n::translate('correct date and time in logs and messages'),
+ ) as $setting=>$features) {
+ if (!ini_get($setting)) {
+ echo '<p class="bad">', i18n::translate('PHP setting "%1$s" is disabled. Without it, the following features will not work: %2$s. Please ask your server\'s administrator to enable it.', $setting, $features), '</p>';
+ $warnings=true;
+ }
+ }
+ }
if (!$warnings && !$errors) {
echo '<p class="good">', i18n::translate('The server configuration is OK.'), '</p>';
}