summaryrefslogtreecommitdiff
path: root/modules/system/system.install
diff options
context:
space:
mode:
authorGábor Hojtsy <gabor@hojtsy.hu>2007-12-20 08:57:55 +0000
committerGábor Hojtsy <gabor@hojtsy.hu>2007-12-20 08:57:55 +0000
commite6a4b82e6e40a2346fd32eb63b0f8a47bf670257 (patch)
tree5de568c32cd176bbaffe58a7809ae76bf421c6f3 /modules/system/system.install
parentd8bd6cf97c7afce67b0b99817ccc139c65bc1c63 (diff)
downloadbrdo-e6a4b82e6e40a2346fd32eb63b0f8a47bf670257.tar.gz
brdo-e6a4b82e6e40a2346fd32eb63b0f8a47bf670257.tar.bz2
#196535 by sun, chx, dww: check whether Drupal can issue HTTP requests at all, so we know that this is the cause of problems, not the remote host not responding.
Diffstat (limited to 'modules/system/system.install')
-rw-r--r--modules/system/system.install8
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/system/system.install b/modules/system/system.install
index c50f01770..e2fdf6382 100644
--- a/modules/system/system.install
+++ b/modules/system/system.install
@@ -241,6 +241,14 @@ function system_requirements($phase) {
$requirements['update status'] = array(
'value' => $t('Enabled'),
);
+ if (variable_get('drupal_http_request_fails', FALSE)) {
+ $requirements['http requests'] = array(
+ 'title' => $t('HTTP request status'),
+ 'value' => $t('Fails'),
+ 'severity' => REQUIREMENT_ERROR,
+ 'description' => $t('Your system or network configuration does not allow Drupal to access web pages, resulting in reduced functionality. This could be due to your webserver configuration or PHP settings, and should be resolved in order to download information about available updates, fetch aggregator feeds, sign in via OpenID, or use other network-dependent services.'),
+ );
+ }
}
$requirements['update status']['title'] = $t('Update notifications');
}