MDL-24087, removed commments deletion from module lib.php

This commit is contained in:
Dongsheng Cai 2010-09-08 09:06:00 +00:00
parent 4d6fd15c00
commit 674abb945e
2 changed files with 0 additions and 8 deletions

View File

@ -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');

View File

@ -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);