From 6830961c2b9ca954985b4cb49c6bfaa5bc69f1d6 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Sun, 2 Oct 2011 16:01:35 +0000 Subject: [PATCH] * (bug 30466) Entries in iwlinks table are now cleared when moving a page over redirect --- RELEASE-NOTES-1.18 | 2 ++ includes/Title.php | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES-1.18 b/RELEASE-NOTES-1.18 index 67f8d503d8..0e1404fd53 100644 --- a/RELEASE-NOTES-1.18 +++ b/RELEASE-NOTES-1.18 @@ -463,6 +463,8 @@ production. * (bug 31213) Exception thrown when trying to move file cross-namespace * (bug 18424) Special:Prefixindex and Special:Allpages paging links are really small, and somewhat inconsistent with each other. +* (bug 30466) Entries in iwlinks table are now cleared when moving a page over + redirect === API changes in 1.18 === * BREAKING CHANGE: action=watch now requires POST and token. diff --git a/includes/Title.php b/includes/Title.php index 4868761885..6d1cfec232 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -3360,6 +3360,7 @@ class Title { $dbw->delete( 'templatelinks', array( 'tl_from' => $newid ), __METHOD__ ); $dbw->delete( 'externallinks', array( 'el_from' => $newid ), __METHOD__ ); $dbw->delete( 'langlinks', array( 'll_from' => $newid ), __METHOD__ ); + $dbw->delete( 'iwlinks', array( 'iwl_from' => $newid ), __METHOD__ ); $dbw->delete( 'redirect', array( 'rd_from' => $newid ), __METHOD__ ); $dbw->delete( 'page_props', array( 'pp_page' => $newid ), __METHOD__ ); } @@ -4370,4 +4371,4 @@ class Title { wfRunHooks( 'PageContentLanguage', array( $this, &$pageLang, $wgLang ) ); return wfGetLangObj( $pageLang ); } -} \ No newline at end of file +} -- 2.20.1