diff --git a/composer.lock b/composer.lock index c41ebc6..8ce7ef1 100644 --- a/composer.lock +++ b/composer.lock @@ -742,16 +742,16 @@ }, { "name": "unsplash/unsplash", - "version": "2.4.3", + "version": "2.4.4", "source": { "type": "git", "url": "https://github.com/unsplash/unsplash-php.git", - "reference": "7c6fed642cf4234545624a1263d57c9cb0970fbf" + "reference": "af907f6192bfd4be9e9814a1242942442604c4de" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/unsplash/unsplash-php/zipball/7c6fed642cf4234545624a1263d57c9cb0970fbf", - "reference": "7c6fed642cf4234545624a1263d57c9cb0970fbf", + "url": "https://api.github.com/repos/unsplash/unsplash-php/zipball/af907f6192bfd4be9e9814a1242942442604c4de", + "reference": "af907f6192bfd4be9e9814a1242942442604c4de", "shasum": "" }, "require": { @@ -797,7 +797,7 @@ } ], "description": "Wrapper to access the Unsplash API and photo library", - "time": "2018-03-30T17:45:15+00:00" + "time": "2019-02-05T18:27:04+00:00" } ], "packages-dev": [], diff --git a/lib/filepicker_unsplash.php b/lib/filepicker_unsplash.php index c7fa3ff..6a037a1 100644 --- a/lib/filepicker_unsplash.php +++ b/lib/filepicker_unsplash.php @@ -13,7 +13,7 @@ dieifnotloggedin(); header('Content-Type: application/json'); Crew\Unsplash\HttpClient::init([ - 'applicationId' => $SETTINGS["unsplash"]["appid"], + 'applicationId' => $SETTINGS["unsplash"]["accesskey"], 'secret' => $SETTINGS["unsplash"]["secretkey"], 'utmSource' => $SETTINGS["unsplash"]["utmsource"] ]);