mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 08:55:15 +02:00
MDL-14320, remove useless icon in edit entry page, merged from MOODLE_19_STABLE
This commit is contained in:
parent
9aa82ed6d4
commit
5f7a233352
@ -71,7 +71,7 @@ class data_field_file extends data_field_base {
|
||||
$str .= '</fieldset>';
|
||||
$str .= '</div>';
|
||||
|
||||
if ($recordid and isset($content)){ // Print icon
|
||||
if ($recordid and isset($content) and !empty($content->content)){ // Print icon
|
||||
require_once($CFG->libdir.'/filelib.php');
|
||||
$icon = mimeinfo('icon', $src);
|
||||
$str .= '<img src="'.$CFG->pixpath.'/f/'.$icon.'" class="icon" alt="'.$icon.'" />'.
|
||||
|
Loading…
x
Reference in New Issue
Block a user