mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-33523: for for missing image (the folder.gif is no longer available)
This commit is contained in:
parent
f8dfdb524b
commit
42642f6c35
3 changed files with 6 additions and 6 deletions
|
@ -262,14 +262,14 @@ class entities {
|
||||||
if (!empty($labels) && ($labels->length > 0)) {
|
if (!empty($labels) && ($labels->length > 0)) {
|
||||||
$tname = 'course_files';
|
$tname = 'course_files';
|
||||||
$dpath = cc2moodle::$path_to_manifest_folder . DIRECTORY_SEPARATOR . $tname;
|
$dpath = cc2moodle::$path_to_manifest_folder . DIRECTORY_SEPARATOR . $tname;
|
||||||
$rfpath = 'folder.gif';
|
$rfpath = 'files.gif';
|
||||||
$fpath = $dpath . DIRECTORY_SEPARATOR . $rfpath;
|
$fpath = $dpath . DIRECTORY_SEPARATOR . $rfpath;
|
||||||
|
|
||||||
if (!file_exists($dpath)) {
|
if (!file_exists($dpath)) {
|
||||||
mkdir($dpath);
|
mkdir($dpath);
|
||||||
}
|
}
|
||||||
//copy the folder.gif file
|
//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);
|
copy($folder_gif, $fpath);
|
||||||
$all_files[] = $rfpath;
|
$all_files[] = $rfpath;
|
||||||
}
|
}
|
||||||
|
|
|
@ -62,13 +62,13 @@ class entities11 extends entities {
|
||||||
if (!empty($labels) && ($labels->length > 0)) {
|
if (!empty($labels) && ($labels->length > 0)) {
|
||||||
$tname = 'course_files';
|
$tname = 'course_files';
|
||||||
$dpath = cc2moodle::$path_to_manifest_folder . DIRECTORY_SEPARATOR . $tname;
|
$dpath = cc2moodle::$path_to_manifest_folder . DIRECTORY_SEPARATOR . $tname;
|
||||||
$rfpath = 'folder.gif';
|
$rfpath = 'files.gif';
|
||||||
$fpath = $dpath . DIRECTORY_SEPARATOR . 'folder.gif';
|
$fpath = $dpath . DIRECTORY_SEPARATOR . 'files.gif';
|
||||||
if (!file_exists($dpath)) {
|
if (!file_exists($dpath)) {
|
||||||
mkdir($dpath);
|
mkdir($dpath);
|
||||||
}
|
}
|
||||||
//copy the folder.gif file
|
//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);
|
copy($folder_gif, $fpath);
|
||||||
$all_files[] = $rfpath;
|
$all_files[] = $rfpath;
|
||||||
}
|
}
|
||||||
|
|
|
@ -52,7 +52,7 @@ class cc_label extends entities {
|
||||||
'[#date_now#]');
|
'[#date_now#]');
|
||||||
|
|
||||||
$title = isset($instance['title']) && !empty($instance['title']) ? $instance['title'] : 'Untitled';
|
$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'],
|
$replace_values = array($instance['instance'],
|
||||||
self::safexml($title),
|
self::safexml($title),
|
||||||
self::safexml($content),
|
self::safexml($content),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue