Skip to content

Commit

Permalink
Merge pull request #4 from lukascelinak/#3216-overiddenimages-rewrite…
Browse files Browse the repository at this point in the history
…-fix

#3216 Added parsing for path for overriden image
  • Loading branch information
kiklop74 authored Jun 27, 2023
2 parents b9653fe + 1b91eb6 commit 86dd6bf
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 86dd6bf

Please sign in to comment.