Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F6728
updateimagelinks.patch
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
•
bzimport
Nov 21 2014, 11:05 PM
2014-11-21 23:05:17 (UTC+0)
Size
657 B
Referenced Files
None
Subscribers
None
updateimagelinks.patch
View Options
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
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
6267
Default Alt Text
updateimagelinks.patch (657 B)
Attached To
Mode
T25002: imagelinks table not updated after imagemove
Attached
Detach File
Event Timeline
Log In to Comment