Page MenuHomePhabricator

updateimagelinks.patch

Authored By
bzimport
Nov 21 2014, 11:05 PM
Size
657 B
Referenced Files
None
Subscribers
None

updateimagelinks.patch

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();

File Metadata

Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
6267
Default Alt Text
updateimagelinks.patch (657 B)

Event Timeline