Skip to content

Commit 0d6720e

Browse files
committed
B2B-2112: [AWS S3] Test failed to find image in new media gallery
1 parent 3ca5a8f commit 0d6720e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/Magento/RemoteStorage/Driver/Adapter/PathUtil.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ public function pathInfo($path)
2525
if ('' !== $dirname) {
2626
$pathInfo['dirname'] = $dirname === '.' ? '' : $dirname;
2727
}
28-
$pathInfo['basename'] = $this->basename($path);
29-
$pathInfo += pathinfo($pathInfo['basename']);
28+
$pathInfo += pathinfo($this->basename($path));
29+
$pathInfo['basename'] = $pathInfo['filename'];
3030
return $pathInfo + ['dirname' => ''];
3131
}
3232

0 commit comments

Comments
 (0)