mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-34318 - blog - Removal of blog associations from the database on delete.
Thanks to Erik Lundberg for this patch.
This commit is contained in:
parent
bac15e5782
commit
339057063c
1 changed files with 2 additions and 3 deletions
|
@ -405,11 +405,10 @@ class blog_entry {
|
|||
* @return void
|
||||
*/
|
||||
public function delete() {
|
||||
global $DB, $USER;
|
||||
|
||||
$returnurl = '';
|
||||
global $DB;
|
||||
|
||||
$this->delete_attachments();
|
||||
$this->remove_associations();
|
||||
|
||||
$DB->delete_records('post', array('id' => $this->id));
|
||||
tag_set('post', $this->id, array());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue