Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 63... Línea 63...
63
                $file = $fs->get_file_by_hash($filerecord->pathnamehash);
63
                $file = $fs->get_file_by_hash($filerecord->pathnamehash);
64
                if ($file) {
64
                if ($file) {
65
                    $file->delete();
65
                    $file->delete();
66
                }
66
                }
67
            }
67
            }
-
 
68
            $filerecords->close();
Línea 68... Línea 69...
68
 
69
 
69
            $DB->delete_records('h5p', ['id' => $orphanedrecord->id]);
70
            $DB->delete_records('h5p', ['id' => $orphanedrecord->id]);
70
            $DB->delete_records('h5p_contents_libraries', ['h5pid' => $orphanedrecord->id]);
71
            $DB->delete_records('h5p_contents_libraries', ['h5pid' => $orphanedrecord->id]);
71
        }
-
 
-
 
72
        }
72
 
73
        $orphanedrecords->close();
73
    }
74
    }