Comment 5 for bug 1172272

Revision history for this message
Akila Ravihansa Perera (ravihansa3000) wrote :

Added a function to check whether 'curl' is present in the existing php configuration: _is_curl_installed()
Separate function might come in handy since there are many instances of curl_init calls.
Used add_error function to display the error message and gracefully handle the exception.