From 0602d8d6975559239b4847678dc20931e3152b1b Mon Sep 17 00:00:00 2001 From: Thomas Schulze Date: Wed, 12 May 2021 09:03:40 +0200 Subject: [PATCH] make the plugin compatible to older versions --- CHANGELOG.md | 6 +++--- README.md | 2 +- composer.json | 4 ++-- src/services/InstagramService.php | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f4a5989..9f90d0f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,9 @@ # Instagram Feed Changelog -## Unreleased +## 1.1.2 - 2021-05-12 -### Fixed -- Required Craft version in Readme. +### Changed +- We made the plugin compatible to older Craft versions again. Changed the required version back to >= 3.0.0. ## 1.1.1 - 2021-04-29 diff --git a/README.md b/README.md index 680bd25..9e5387e 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ This only works with **public** profiles. ## Requirements - * Craft CMS >= 3.5.0 + * Craft CMS >= 3.0.0 ## Installation diff --git a/composer.json b/composer.json index bd94830..a633530 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "codemonauts/craft-instagram-feed", "description": "Craft CMS plugin to receive Instragram feed data as variable in templates.", - "version": "1.1.1", + "version": "1.1.2", "type": "craft-plugin", "keywords": [ "craft", @@ -23,7 +23,7 @@ "issues": "https://github.com/codemonauts/craft-instagram-feed/issues" }, "require": { - "craftcms/cms": "^3.5.0", + "craftcms/cms": "^3.0.0", "ext-json": "*", "php": "^7.2" }, diff --git a/src/services/InstagramService.php b/src/services/InstagramService.php index 7b4764d..f804eb0 100644 --- a/src/services/InstagramService.php +++ b/src/services/InstagramService.php @@ -398,7 +398,7 @@ private function storeImages(array $items): array $asset->tempFilePath = $tempFilePath; $asset->filename = $filename; $asset->newFolderId = $folderId; - $asset->setVolumeId($volume->id); + $asset->volumeId = $volume->id; $asset->avoidFilenameConflicts = false; $asset->setScenario(Asset::SCENARIO_CREATE);