Skip to content

Commit

Permalink
Fix var folder not set when uploading
Browse files Browse the repository at this point in the history
  • Loading branch information
tr33m4n committed Jan 5, 2023
1 parent 4594a7a commit 11a5713
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Model/Config/Backend/AuthFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,6 @@ public function __construct(
AbstractDb $resourceCollection = null,
array $data = []
) {
// Ensure we do not save the auth JSON file in a public location
$this->_mediaDirectory = $filesystem->getDirectoryWrite(DirectoryList::VAR_DIR);

parent::__construct(
$context,
$registry,
Expand All @@ -58,6 +55,9 @@ public function __construct(
$resourceCollection,
$data
);

// Ensure we do not save the auth JSON file in a public location
$this->_mediaDirectory = $filesystem->getDirectoryWrite(DirectoryList::VAR_DIR);
}

/**
Expand Down

0 comments on commit 11a5713

Please sign in to comment.