Skip to content

Commit

Permalink
MDL-39324 mod_url: Fix icon when URL has params
Browse files Browse the repository at this point in the history
  • Loading branch information
kiratskitizing committed Oct 4, 2021
1 parent 1a9bee6 commit ddfc1ba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mod/url/locallib.php
Expand Up @@ -571,6 +571,8 @@ function url_guess_icon($fullurl, $size = null) {
return null;
}

$moodleurl = new moodle_url($fullurl);
$fullurl = $moodleurl->out_omit_querystring();
$icon = file_extension_icon($fullurl, $size);
$htmlicon = file_extension_icon('.htm', $size);
$unknownicon = file_extension_icon('', $size);
Expand Down

0 comments on commit ddfc1ba

Please sign in to comment.