Skip to content
Browse files

MDL-34318 - blog - Removal of blog associations from the database on …

…delete.

Thanks to Erik Lundberg for this patch.
  • Loading branch information...
1 parent d71c486 commit ac31c38eedbb2fbb03b3aeb97617e71c14b5eb49 @abgreeve abgreeve committed Aug 28, 2012
Showing with 2 additions and 3 deletions.
  1. +2 −3 blog/locallib.php
View
5 blog/locallib.php
@@ -292,11 +292,10 @@ public function edit($params=array(), $form=null, $summaryoptions=array(), $atta
* @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());

0 comments on commit ac31c38

Please sign in to comment.
Something went wrong with that request. Please try again.