diff options
author | Philipp Kapfer <philipp.kapfer@gmx.at> | 2013-06-01 11:28:02 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2014-04-03 16:38:43 +0200 |
commit | ff9a4a6d91b4a23be91a462806b8162543bb6c95 (patch) | |
tree | 7f2a4dd76e1cd1fb195c4b7bb5978f37b390cfbd /apps/files_external/lib/dropbox.php | |
parent | 46379113a118e8c4c8ed26026f2d2a610380a368 (diff) | |
download | nextcloud-server-ff9a4a6d91b4a23be91a462806b8162543bb6c95.tar.gz nextcloud-server-ff9a4a6d91b4a23be91a462806b8162543bb6c95.zip |
Added cURL dependency for Amazon S3, Dropbox and SWIFT
Conflicts:
apps/files_external/lib/amazons3.php
apps/files_external/lib/swift.php
Diffstat (limited to 'apps/files_external/lib/dropbox.php')
-rwxr-xr-x | apps/files_external/lib/dropbox.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/apps/files_external/lib/dropbox.php b/apps/files_external/lib/dropbox.php index 0214e18020c..f6a54bc0ca8 100755 --- a/apps/files_external/lib/dropbox.php +++ b/apps/files_external/lib/dropbox.php @@ -33,6 +33,18 @@ class Dropbox extends \OC\Files\Storage\Common { private static $tempFiles = array(); + /** + * check if curl is installed + */ + public static function checkDependencies() { + if (function_exists('curl_init')) { + return true; + } else { + $l = new \OC_L10N('files_external'); + return $l->t('<b>Note:</b> The cURL support in PHP is not enabled or installed. Mounting of Dropbox is not possible. Please ask your system administrator to install it.'); + } + } + public function __construct($params) { if (isset($params['configured']) && $params['configured'] == 'true' && isset($params['app_key']) |