mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 20:42:22 +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
d71c486507
commit
ac31c38eed
@ -292,11 +292,10 @@ class blog_entry implements renderable {
|
||||
* @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…
x
Reference in New Issue
Block a user