Skip to content

Commit

Permalink
MDL-33523: for for missing image (the folder.gif is no longer available)
Browse files Browse the repository at this point in the history
  • Loading branch information
Darko Miletic committed Jun 14, 2012
1 parent f8dfdb5 commit 42642f6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions backup/cc/entities.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -262,14 +262,14 @@ protected function get_all_files () {
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;
}
Expand Down
6 changes: 3 additions & 3 deletions backup/cc/entities11.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,13 @@ protected function get_all_files () {
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;
}
Expand Down
2 changes: 1 addition & 1 deletion backup/cc/entity.label.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ private function create_node_course_modules_mod_label ($sheet_mod_label, $instan
'[#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),
Expand Down

0 comments on commit 42642f6

Please sign in to comment.