diff options
author | Gábor Hojtsy <gabor@hojtsy.hu> | 2008-01-30 20:30:35 +0000 |
---|---|---|
committer | Gábor Hojtsy <gabor@hojtsy.hu> | 2008-01-30 20:30:35 +0000 |
commit | 7f2f0072f9cd5a22d73ab518011ab38687bb25e7 (patch) | |
tree | 43ec38f9259f261c3ccf079228a641ba78166c99 | |
parent | d171a9e75ab30d833347e9971da8dbf0aa79a433 (diff) | |
download | brdo-7f2f0072f9cd5a22d73ab518011ab38687bb25e7.tar.gz brdo-7f2f0072f9cd5a22d73ab518011ab38687bb25e7.tar.bz2 |
#105405 by chx, Pancho: (regression) remove web server version checking; it is not in Drupal 5; Apache 1.3 is surpassed for a long time now
-rw-r--r-- | modules/system/system.install | 24 | ||||
-rw-r--r-- | modules/system/system.module | 5 |
2 files changed, 1 insertions, 28 deletions
diff --git a/modules/system/system.install b/modules/system/system.install index bb879e6bd..2f70091b3 100644 --- a/modules/system/system.install +++ b/modules/system/system.install @@ -24,34 +24,12 @@ function system_requirements($phase) { ); } - // Test web server + // Web server information. $software = $_SERVER['SERVER_SOFTWARE']; $requirements['webserver'] = array( 'title' => $t('Web server'), 'value' => $software, ); - // Use server info string, if present. - if ($software && preg_match('![0-9]!', $software)) { - list($server, $version) = split('[ /]', $software); - switch ($server) { - case 'Apache': - if (version_compare($version, DRUPAL_MINIMUM_APACHE) < 0) { - $requirements['webserver']['description'] = $t('Your Apache server is too old. Drupal requires at least Apache %version.', array('%version' => DRUPAL_MINIMUM_APACHE)); - $requirements['webserver']['severity'] = REQUIREMENT_ERROR; - } - break; - - default: - $requirements['webserver']['description'] = $t('The web server you\'re using has not been tested with Drupal and might not work properly.'); - $requirements['webserver']['severity'] = REQUIREMENT_WARNING; - break; - } - } - else { - $requirements['webserver']['value'] = $software ? $software : $t('Unknown'); - $requirements['webserver']['description'] = $t('Unable to determine your web server type and version. Drupal might not work properly.'); - $requirements['webserver']['severity'] = REQUIREMENT_WARNING; - } // Test PHP version $requirements['php'] = array( diff --git a/modules/system/system.module b/modules/system/system.module index a982f2e87..a7619c207 100644 --- a/modules/system/system.module +++ b/modules/system/system.module @@ -37,11 +37,6 @@ define('DRUPAL_MINIMUM_MYSQL', '4.1.1'); define('DRUPAL_MINIMUM_PGSQL', '7.4'); /** - * Minimum supported version of Apache, if it is used. - */ -define('DRUPAL_MINIMUM_APACHE', '1.3'); - -/** * Maximum age of temporary files in seconds. */ define('DRUPAL_MAXIMUM_TEMP_FILE_AGE', 1440); |