mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
MDL-24087, removed commments deletion from module lib.php
This commit is contained in:
parent
4d6fd15c00
commit
674abb945e
@ -909,10 +909,6 @@ function data_delete_instance($id) { // takes the dataid
|
||||
$fs = get_file_storage();
|
||||
$fs->delete_area_files($context->id, 'mod_data');
|
||||
|
||||
// Delete comments
|
||||
require_once($CFG->dirroot.'/comment/lib.php');
|
||||
comment::delete_comments(array('contextid'=>$context->id));
|
||||
|
||||
// Delete ratings
|
||||
//delete ratings
|
||||
require_once($CFG->dirroot.'/rating/lib.php');
|
||||
|
@ -195,10 +195,6 @@ function glossary_delete_instance($id) {
|
||||
$DB->delete_records_select('glossary_entries_categories', "categoryid IN ($category_select)", array($id));
|
||||
$DB->delete_records('glossary_categories', array('glossaryid'=>$id));
|
||||
|
||||
// Delete comments
|
||||
require_once($CFG->dirroot.'/comment/lib.php');
|
||||
comment::delete_comments(array('contextid'=>$context->id));
|
||||
|
||||
// delete all files
|
||||
$fs->delete_area_files($context->id);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user