From: Brion Vibber Date: Thu, 2 Nov 2006 11:39:13 +0000 (+0000) Subject: * Remove entries from redirect table on article deletion X-Git-Tag: 1.31.0-rc.0~55311 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=82dbc6dba2e8d748426adbd1da7dcb24401ead7b;p=lhc%2Fweb%2Fwiklou.git * Remove entries from redirect table on article deletion --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 7398422fe8..c23e4f4f99 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -122,6 +122,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 7780) Fix regression in editing redirects * Add whitespace above "templates included on this page" using CSS, not hardcoded line break. +* Remove entries from redirect table on article deletion + == Languages updated == diff --git a/includes/Article.php b/includes/Article.php index 4c1eebd25a..c3ef0fb74a 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -1978,6 +1978,7 @@ class Article { $dbw->delete( 'templatelinks', array( 'tl_from' => $id ) ); $dbw->delete( 'externallinks', array( 'el_from' => $id ) ); $dbw->delete( 'langlinks', array( 'll_from' => $id ) ); + $dbw->delete( 'redirect', array( 'rd_from' => $id ) ); } # If using cleanup triggers, we can skip some manual deletes