diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2011-01-03 02:41:33 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2011-01-03 02:41:33 +0000 |
commit | 81f6ecd362f279a0e1c468bff68c98ea2571bd2e (patch) | |
tree | a7ae0a7fe26f937cc6501adad014646edbb7088c /includes | |
parent | bfcdaf0607a563d69380f21602ae0d95c00f0402 (diff) | |
download | brdo-81f6ecd362f279a0e1c468bff68c98ea2571bd2e.tar.gz brdo-81f6ecd362f279a0e1c468bff68c98ea2571bd2e.tar.bz2 |
#686060 by Crell, David_Rothstein, dww, yoroy, carlos8f, et al: Fixed Explain that the Update manager only works if you have FTP or SSH access to your server
Diffstat (limited to 'includes')
-rw-r--r-- | includes/authorize.inc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/includes/authorize.inc b/includes/authorize.inc index 5c4d1f0b4..4baf2f152 100644 --- a/includes/authorize.inc +++ b/includes/authorize.inc @@ -194,7 +194,12 @@ function authorize_filetransfer_form_validate($form, &$form_state) { $filetransfer->connect(); } catch (Exception $e) { - form_set_error('connection_settings', $e->getMessage()); + // The format of this error message is similar to that used on the + // database connection form in the installer. + form_set_error('connection_settings', t('Failed to connect to the server. The server reports the following message: !message For more help installing or updating code on your server, see the <a href="@handbook_url">handbook</a>.', array( + '!message' => '<p class="error">' . $e->getMessage() . '</p>', + '@handbook_url' => 'http://drupal.org/documentation/install/modules-themes', + ))); } } } |