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 19d1417 commit 4d59811Copy full SHA for 4d59811
app/code/Magento/Cms/Model/Wysiwyg/Images/Storage.php
@@ -385,9 +385,7 @@ public function getDirsCollection($path)
385
*/
386
public function getFilesCollection($path, $type = null)
387
{
388
- if (!($this->isDirectoryAllowed($path))) {
389
- return $this->getCollection(null);
390
- }
+ $collectFiles = $this->isDirectoryAllowed($path);
391
392
if ($this->_coreFileStorageDb->checkDbUsage()) {
393
$files = $this->_storageDatabaseFactory->create()->getDirectoryFiles($path);
@@ -404,7 +402,7 @@ public function getFilesCollection($path, $type = null)
404
402
)->setCollectDirs(
405
403
false
406
)->setCollectFiles(
407
- true
+ $collectFiles
408
)->setCollectRecursively(
409
410
)->setOrder(
0 commit comments