<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.3 |
+ | CiviCRM version 4.5 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2013 |
+ | Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
* This class handles downloads of remotely-provided extensions
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-2013
+ * @copyright CiviCRM LLC (c) 2004-2014
* $Id$
*
*/
public $tmpDir;
/**
+ * @param CRM_Extension_Manager $manager
* @param string $containerDir the place to store downloaded & extracted extensions
* @param string $tmpDir
*/
);
}
+ 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;
}
/**
* Validate that $extractedZipPath contains valid for extension $key
*
+ * @param $key
+ * @param $extractedZipPath
+ *
* @return bool
*/
function validateFiles($key, $extractedZipPath) {