We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2f1417 commit ed43407Copy full SHA for ed43407
app/code/Magento/Catalog/Model/Category/FileInfo.php
@@ -76,7 +76,7 @@ private function getMediaDirectory()
76
private function getBaseDirectory()
77
{
78
if (!isset($this->baseDirectory)) {
79
- $this->baseDirectory = $this->filesystem->getDirectoryRead(DirectoryList::ROOT);
+ $this->baseDirectory = $this->filesystem->getDirectoryRead(DirectoryList::PUB);
80
}
81
82
return $this->baseDirectory;
app/code/Magento/Catalog/Test/Unit/Model/Category/FileInfoTest.php
@@ -57,7 +57,7 @@ protected function setUp()
57
58
$this->filesystem->expects($this->any())
59
->method('getDirectoryRead')
60
- ->with(DirectoryList::ROOT)
+ ->with(DirectoryList::PUB)
61
->willReturn($this->baseDirectory);
62
63
$this->mime = $this->getMockBuilder(Mime::class)
0 commit comments