From e6a4b82e6e40a2346fd32eb63b0f8a47bf670257 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Hojtsy?= Date: Thu, 20 Dec 2007 08:57:55 +0000 Subject: #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. --- modules/system/system.install | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'modules/system/system.install') 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'); } -- cgit v1.2.3