[svn r15416] Trainer thumbnails fixed for IE (see FS#2589)

skala
Julio Montoya 17 years ago
parent faca37c066
commit f0f98024da
  1. BIN
      main/default_course_document/images/trainer/.thumbs/.julio222.gif
  2. 29
      main/inc/lib/add_course.lib.inc.php

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

@ -1,5 +1,5 @@
<?php //$id: $
/*
/*
==============================================================================
Dokeos - elearning and course management software
@ -1557,18 +1557,33 @@ function fill_course_repository($courseRepository)
}
$handle = opendir($img_code_path);
foreach($pictures_array as $key => $value){
if($value["dir"]!=""){
foreach($pictures_array as $key => $value)
{
if($value["dir"]!="")
{
mkdir($course_documents_folder_images.$value["dir"],$perm);
}
if($value["file"]!=""){
if($value["file"]!="")
{
copy($img_code_path.$value["file"],$course_documents_folder_images.$value["file"]);
chmod($course_documents_folder_images.$value["file"],$perm_file);
}
}
//trainer thumbnails fix
$path_thumb=mkdir($course_documents_folder_images.'trainer/.thumbs',$perm);
$handle = opendir($img_code_path.'trainer/.thumbs/');
while (false !== ($file = readdir($handle)))
{
if (is_file($img_code_path.'trainer/.thumbs/'.$file))
{
copy($img_code_path.'trainer/.thumbs/'.$file,$course_documents_folder_images.'trainer/.thumbs/'.$file);
chmod($course_documents_folder_images.'trainer/.thumbs/'.$file,$perm_file);
}
}
$default_document_array['images']=$pictures_array;

Loading…
Cancel
Save