Skip to content

Commit

Permalink
Merge pull request #33 from cloudinary/v1.9.3
Browse files Browse the repository at this point in the history
CLOUDINARY-143: Fixed issue When installing the M2 module the error: …
  • Loading branch information
Pniel (Pini) Cohen authored Jul 14, 2019
2 parents 34cdcf6 + 3cbfdb7 commit a29bd85
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions Core/AutoUploadMapping/ApiClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ public function __construct(
*/
public static function fromConfiguration(ConfigurationInterface $configuration)
{
$this->authorise();
return new ApiClient(
$configuration,
new ConfigurationBuilder($configuration),
Expand Down Expand Up @@ -149,7 +148,7 @@ function (array $mapping) use ($url) {

private function authorise()
{
if (!$this->_authorised && $configuration->isEnabled()) {
if (!$this->_authorised && $this->configuration->isEnabled()) {
Cloudinary::config($this->configurationBuilder->build());
Cloudinary::$USER_PLATFORM = $this->configuration->getUserPlatform();
$this->_authorised = true;
Expand Down
3 changes: 1 addition & 2 deletions Core/CloudinaryImageProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ public function __construct(
*/
public static function fromConfiguration(ConfigurationInterface $configuration)
{
$this->authorise();
return new CloudinaryImageProvider(
$configuration,
new ConfigurationBuilder($configuration),
Expand Down Expand Up @@ -156,7 +155,7 @@ public function validateCredentials()

private function authorise()
{
if (!$this->_authorised && $configuration->isEnabled()) {
if (!$this->_authorised && $this->configuration->isEnabled()) {
Cloudinary::config($this->configurationBuilder->build());
Cloudinary::$USER_PLATFORM = $this->configuration->getUserPlatform();
$this->_authorised = true;
Expand Down

0 comments on commit a29bd85

Please sign in to comment.