Merge pull request #2649 from rocxa/master
[civicrm-core.git] / CRM / Extension / Downloader.php
index 3c40f0bc30af6ed2218646ec15f3dafbdba338da..4a6274efc5227e9031e1d3125f96cc0a80c8be15 100644 (file)
@@ -84,6 +84,11 @@ class CRM_Extension_Downloader {
       );
     }
 
+    if (empty($errors) && ! CRM_Utils_HttpClient::singleton()->isRedirectSupported()) {
+      CRM_Core_Session::setStatus(ts('WARNING: The downloader may be unable to download files which require HTTP redirection. This may be a configuration issue with PHP\'s open_basedir or safe_mode.'));
+      CRM_Core_Error::debug_log_message('WARNING: The downloader may be unable to download files which require HTTP redirection. This may be a configuration issue with PHP\'s open_basedir or safe_mode.');
+    }
+
     return $errors;
   }