Commit fc87543d authored by jun's avatar jun
Browse files

Merge branch 'MDL74387_master' of https://github.com/Amrita1991/moodle

parents 4e55e7be a3226cf2
...@@ -555,9 +555,10 @@ function url_guess_icon($fullurl, $size = null) { ...@@ -555,9 +555,10 @@ function url_guess_icon($fullurl, $size = null) {
$icon = file_extension_icon($fullurl, $size); $icon = file_extension_icon($fullurl, $size);
$htmlicon = file_extension_icon('.htm', $size); $htmlicon = file_extension_icon('.htm', $size);
$unknownicon = file_extension_icon('', $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. // 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; return null;
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment