]> git.mxchange.org Git - friendica-addons.git/blobdiff - s3_storage/vendor/akeeba/s3/src/Configuration.php
[s3_storage] Bump version of akeeba/s3 to version 2.3.1
[friendica-addons.git] / s3_storage / vendor / akeeba / s3 / src / Configuration.php
index 13540dd0e1b6112ba05f55ede9472c0ce35e5868..ca5fa19e21658838abf269bd943780d2aea927d2 100644 (file)
@@ -3,14 +3,14 @@
  * Akeeba Engine
  *
  * @package   akeebaengine
- * @copyright Copyright (c)2006-2020 Nicholas K. Dionysopoulos / Akeeba Ltd
+ * @copyright Copyright (c)2006-2023 Nicholas K. Dionysopoulos / Akeeba Ltd
  * @license   GNU General Public License version 3, or later
  */
 
-namespace Akeeba\Engine\Postproc\Connector\S3v4;
+namespace Akeeba\S3;
 
 // Protection against direct access
-defined('AKEEBAENGINE') or die();
+defined('AKEEBAENGINE') || die();
 
 /**
  * Holds the Amazon S3 confiugration credentials
@@ -199,6 +199,8 @@ class Configuration
                        throw new Exception\InvalidSignatureMethod;
                }
 
+               $this->signatureMethod = $signatureMethod;
+
                // If you switch to v2 signatures we unset the region.
                if ($signatureMethod == 'v2')
                {
@@ -214,13 +216,7 @@ class Configuration
                                $this->setUseLegacyPathStyle(false);
                        }
 
-               } else {
-                       if (empty($this->getRegion())) {
-                               $this->setRegion('us-east-1');
-                       }
                }
-
-               $this->signatureMethod = $signatureMethod;
        }
 
        /**