* (bug 30466) Entries in iwlinks table are now cleared when moving a page over redirect
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sun, 2 Oct 2011 16:01:35 +0000 (16:01 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sun, 2 Oct 2011 16:01:35 +0000 (16:01 +0000)
RELEASE-NOTES-1.18
includes/Title.php

index 67f8d50..0e1404f 100644 (file)
@@ -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.
index 4868761..6d1cfec 100644 (file)
@@ -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
+}