]> source.dussan.org Git - nextcloud-server.git/commitdiff
remove duplicate method checkDependencies()
authorThomas Müller <thomas.mueller@tmit.eu>
Thu, 3 Apr 2014 15:17:44 +0000 (17:17 +0200)
committerThomas Müller <thomas.mueller@tmit.eu>
Thu, 3 Apr 2014 15:17:44 +0000 (17:17 +0200)
apps/files_external/lib/amazons3.php

index 352885121f95f7df2691ab1bb391857577283efb..2093fb7e58cf7aadf249db84cc9614fb904d4cb8 100644 (file)
@@ -73,18 +73,6 @@ class AmazonS3 extends \OC\Files\Storage\Common {
                }
        }
 
-       /**
-        * 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 Amazon S3 is not possible. Please ask your system administrator to install it.');
-               }
-       }
-
        public function __construct($params) {
                if (!isset($params['key']) || !isset($params['secret']) || !isset($params['bucket'])) {
                        throw new \Exception("Access Key, Secret and Bucket have to be configured.");