Skip to content

Commit 35642f7

Browse files
author
Viktor Kopin
committed
1 parent 0cafa20 commit 35642f7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/code/Magento/MediaGalleryUi/Model/InsertImageData/GetInsertImageData.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ private function getMediaDirectory(): ReadInterface
151151
*/
152152
private function getImageRelativePath(string $content): string
153153
{
154+
// phpcs:ignore Magento2.Functions.DiscouragedFunction
154155
$mediaPath = parse_url($this->imagesHelper->getCurrentUrl(), PHP_URL_PATH);
155156
return substr($content, strlen($mediaPath));
156157
}

0 commit comments

Comments
 (0)