"MDL-13766, removed debug code"

This commit is contained in:
Dongsheng Cai 2010-03-15 06:42:55 +00:00
parent 85495bd291
commit d5774763d1

View File

@ -837,13 +837,11 @@ abstract class repository {
$existingfile->delete();
}
if ($file = $fs->create_file_from_pathname($entry, $thefile)) {
echo_fb($file);
if (empty($CFG->repository_no_delete)) {
$delete = unlink($thefile);
unset($CFG->repository_no_delete);
}
$fileinfo = $browser->get_file_info($context, $file->get_filearea(), $file->get_itemid(), $file->get_filepath(), $file->get_filename());
echo_fb($fileinfo);
if(!empty($fileinfo)) {
return array(
'url'=>$fileinfo->get_url(),