mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
"MDL-13766, removed debug code"
This commit is contained in:
parent
85495bd291
commit
d5774763d1
@ -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(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user