mirror of
https://github.com/moodle/moodle.git
synced 2025-04-18 23:15:38 +02:00
MDL-33523: for for missing image (the folder.gif is no longer available)
This commit is contained in:
parent
f8dfdb524b
commit
42642f6c35
@ -262,14 +262,14 @@ class entities {
|
||||
if (!empty($labels) && ($labels->length > 0)) {
|
||||
$tname = 'course_files';
|
||||
$dpath = cc2moodle::$path_to_manifest_folder . DIRECTORY_SEPARATOR . $tname;
|
||||
$rfpath = 'folder.gif';
|
||||
$rfpath = 'files.gif';
|
||||
$fpath = $dpath . DIRECTORY_SEPARATOR . $rfpath;
|
||||
|
||||
if (!file_exists($dpath)) {
|
||||
mkdir($dpath);
|
||||
}
|
||||
//copy the folder.gif file
|
||||
$folder_gif = "{$CFG->dirroot}/pix/f/folder.gif";
|
||||
$folder_gif = "{$CFG->dirroot}/pix/i/files.gif";
|
||||
copy($folder_gif, $fpath);
|
||||
$all_files[] = $rfpath;
|
||||
}
|
||||
|
@ -62,13 +62,13 @@ class entities11 extends entities {
|
||||
if (!empty($labels) && ($labels->length > 0)) {
|
||||
$tname = 'course_files';
|
||||
$dpath = cc2moodle::$path_to_manifest_folder . DIRECTORY_SEPARATOR . $tname;
|
||||
$rfpath = 'folder.gif';
|
||||
$fpath = $dpath . DIRECTORY_SEPARATOR . 'folder.gif';
|
||||
$rfpath = 'files.gif';
|
||||
$fpath = $dpath . DIRECTORY_SEPARATOR . 'files.gif';
|
||||
if (!file_exists($dpath)) {
|
||||
mkdir($dpath);
|
||||
}
|
||||
//copy the folder.gif file
|
||||
$folder_gif = "{$CFG->dirroot}/pix/f/folder.gif";
|
||||
$folder_gif = "{$CFG->dirroot}/pix/i/files.gif";
|
||||
copy($folder_gif, $fpath);
|
||||
$all_files[] = $rfpath;
|
||||
}
|
||||
|
@ -52,7 +52,7 @@ class cc_label extends entities {
|
||||
'[#date_now#]');
|
||||
|
||||
$title = isset($instance['title']) && !empty($instance['title']) ? $instance['title'] : 'Untitled';
|
||||
$content = "<img src=\"$@FILEPHP@$$@SLASH@$"."folder.gif\" alt=\"Folder\" title=\"{$title}\" /> {$title}";
|
||||
$content = "<img src=\"$@FILEPHP@$$@SLASH@$"."files.gif\" alt=\"Folder\" title=\"{$title}\" /> {$title}";
|
||||
$replace_values = array($instance['instance'],
|
||||
self::safexml($title),
|
||||
self::safexml($content),
|
||||
|
Loading…
x
Reference in New Issue
Block a user