Skip to content

Commit

Permalink
#3216 Added parsing for path for overriden image
Browse files Browse the repository at this point in the history
  • Loading branch information
lukascelinak committed May 26, 2023
1 parent 2aa393d commit 1b91eb6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions classes/api/xmlutil.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ public static function recode_images(
$fs = get_file_storage();
foreach ($items as $item) {
$src = str_replace($seed, $empty, $item->getAttribute($srcattribute));
$src= parse_url($src)['path'];
$path = pathinfo($src);
$imagefile = $fs->get_file(
$contextid,
Expand Down

0 comments on commit 1b91eb6

Please sign in to comment.