Skip to content

Commit

Permalink
Merge branch 'MDL74387_master' of https://github.com/Amrita1991/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
junpataleta committed Jun 29, 2022
2 parents 4e55e7b + a3226cf commit fc87543
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mod/url/locallib.php
Expand Up @@ -555,9 +555,10 @@ function url_guess_icon($fullurl, $size = null) {
$icon = file_extension_icon($fullurl, $size);
$htmlicon = file_extension_icon('.htm', $size);
$unknownicon = file_extension_icon('', $size);
$phpicon = file_extension_icon('.php', $size); // Exception for php files.

// We do not want to return those icon types, the module icon is more appropriate.
if ($icon === $unknownicon || $icon === $htmlicon) {
if ($icon === $unknownicon || $icon === $htmlicon || $icon === $phpicon) {
return null;
}

Expand Down

0 comments on commit fc87543

Please sign in to comment.