Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
moodle
moodle
Commits
fc87543d
Commit
fc87543d
authored
Jun 29, 2022
by
jun
Browse files
Merge branch 'MDL74387_master' of
https://github.com/Amrita1991/moodle
parents
4e55e7be
a3226cf2
Changes
1
Hide whitespace changes
Inline
Side-by-side
mod/url/locallib.php
View file @
fc87543d
...
...
@@ -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
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment