Skip to content

Commit

Permalink
Update to v4.1.0 (#31)
Browse files Browse the repository at this point in the history
* BUGFIX: Obj echo issue fix - added json_encode

* PRE_RELEASE: Increment Version Number

* REVERT: Version Number

* PR: Remove BraintreeException #23

* PR: Add PHP version and extension requirementss #24

* PR: Correct URL for other regions #27

* Update to v4.1.0

---------

Co-authored-by: Vivek <[email protected]>
  • Loading branch information
harasunu-narayan and vivek-accolite-801 authored Jul 12, 2023
1 parent ed14cb2 commit a35ec45
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
8 changes: 6 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "froala/wysiwyg-editor-php-sdk",
"version": "4.0.19",
"version": "4.1.0",
"description": "PHP SDK for Froala WYSIWYG Editor",
"type": "php-plugin",
"keywords": [
Expand Down Expand Up @@ -28,7 +28,11 @@
"role": "Maintainer"
}
],
"require": {},
"require": {
"php": ">=5.4.0",
"ext-fileinfo": "*",
"ext-imagick": "*"
},
"autoload": {
"psr-0": {
"FroalaEditor": "lib/"
Expand Down
2 changes: 1 addition & 1 deletion lib/FroalaEditor.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
require_once(__DIR__ . DIRECTORY_SEPARATOR . 'autoload.php');

if (version_compare(PHP_VERSION, '5.4.0', '<')) {
throw new Braintree_Exception('PHP version >= 5.4.0 required');
throw new Exception('PHP version >= 5.4.0 required');
}

function requireDependencies() {
Expand Down
4 changes: 2 additions & 2 deletions lib/FroalaEditor/S3.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public static function getHash($config) {
// Prepare response.
$response = new \StdClass;
$response->bucket = $bucket;
$response->region = $region != 'us-east-1' ? 's3-' . $region : 's3';
$response->region = $region != 'us-east-1' ? 's3.' . $region : 's3';
$response->keyStart = $keyStart;

// Prepare params.
Expand All @@ -113,7 +113,7 @@ public static function getHash($config) {
// Set params in response.
$response->params = $params;

return $response;
return json_encode($response);
}
}

Expand Down

0 comments on commit a35ec45

Please sign in to comment.