Skip to content

Commit

Permalink
PrestaShop 8 Compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
jeckyl committed Apr 10, 2023
1 parent d54db73 commit 82824fd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion printful.php
Expand Up @@ -74,7 +74,7 @@ public function __construct()
{
$this->name = 'printful';
$this->tab = 'others';
$this->version = '1.0.3';
$this->version = '1.0.4';
$this->author = 'Printful';
$this->need_instance = 1;

Expand Down
4 changes: 2 additions & 2 deletions src/services/VersionValidatorService.php
Expand Up @@ -58,7 +58,7 @@ public function getActualVersionData()
));

$releaseJsonData = Tools::file_get_contents(self::PLUGIN_RELEASE_DATA_URL, false, $context);
$releaseData = Tools::jsonDecode($releaseJsonData, true);
$releaseData = json_decode($releaseJsonData, true);

// new result with defaults
$currentCheckData = new PrintfulPluginVersionCheckData();
Expand All @@ -83,7 +83,7 @@ public function getActualVersionData()
*/
protected function storeVersionCheckData(PrintfulPluginVersionCheckData $data)
{
$jsonData = Tools::jsonEncode($data->toArray());
$jsonData = json_encode($data->toArray());

Configuration::set(Printful::CONFIG_PRINTFUL_VERSION_CHECK_DATA, $jsonData);
}
Expand Down

0 comments on commit 82824fd

Please sign in to comment.