Commit 9a495756 authored by Penny Leach's avatar Penny Leach
Browse files

removed debug code i left in

parent d6b0588e
......@@ -707,7 +707,6 @@ class ArtefactTypeFile extends ArtefactTypeFileBase {
$dataroot = get_config('dataroot');
$pathname = $dataroot . $pathname;
if (!$size = filesize($pathname)) {
log_debug(1);
return false;
}
$f = self::new_file($pathname, $data);
......@@ -720,7 +719,6 @@ class ArtefactTypeFile extends ArtefactTypeFileBase {
$newname = $newdir . '/' . $id;
if (!rename($pathname, $newname)) {
$f->delete();
log_debug(2);
return false;
}
if (empty($user)) {
......@@ -734,7 +732,6 @@ class ArtefactTypeFile extends ArtefactTypeFileBase {
}
catch (QuotaExceededException $e) {
$f->delete();
log_debug(3);
return false;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment