Index: includes/Title.php =================================================================== --- includes/Title.php (revision 65652) +++ includes/Title.php (working copy) @@ -3035,6 +3035,16 @@ WatchedItem::duplicateEntries( $this, $nt ); } + # Update imagelinks + if ( $newnamespace == NS_FILE ) { + if( $createRedirect ) { + $dbw->update( 'imagelinks', array( 'il_to' => $newtitle ), + array( 'il_to' => $oldtitle ), __METHOD__ ); + } + $update = new HTMLCacheUpdate( $this, 'imagelinks' ); + $update->doUpdate(); + } + # Update search engine $u = new SearchUpdate( $pageid, $nt->getPrefixedDBkey() ); $u->doUpdate();