Merge branch 'wip-MDL-34318-master' of git://github.com/abgreeve/moodle

This commit is contained in:
Sam Hemelryk
2012-09-03 10:12:50 +12:00
+2 -3
View File
@@ -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());