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 0cafa20 commit 35642f7Copy full SHA for 35642f7
app/code/Magento/MediaGalleryUi/Model/InsertImageData/GetInsertImageData.php
@@ -151,6 +151,7 @@ private function getMediaDirectory(): ReadInterface
151
*/
152
private function getImageRelativePath(string $content): string
153
{
154
+ // phpcs:ignore Magento2.Functions.DiscouragedFunction
155
$mediaPath = parse_url($this->imagesHelper->getCurrentUrl(), PHP_URL_PATH);
156
return substr($content, strlen($mediaPath));
157
}
0 commit comments