Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F1342
Image.php.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, 7:01 PM
2014-11-21 19:01:07 (UTC+0)
Size
645 B
Referenced Files
None
Subscribers
None
Image.php.patch
View Options
Index: Image.php
===================================================================
--- Image.php (revision 16097)
+++ Image.php (working copy)
@@ -1655,7 +1655,10 @@
$suppressRC = true; // There's already a log entry, so don't double the RC load
if( $descTitle->exists() ) {
- // TODO: insert a null revision into the page history for this update.
+ // Bugzilla #778: Image upload replacements should create watchlist entry
+ $currentRevisionID = $article->getLatest();
+ $nullRevision = Revision::newNullRevision( $dbw, $currentRevisionID, $desc, false );
+
if( $watch ) {
$wgUser->addWatch( $descTitle );
}
File Metadata
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1241
Default Alt Text
Image.php.patch (645 B)
Attached To
Mode
T2778: Image upload replacements should create watchlist entry
Attached
Detach File
Event Timeline
Log In to Comment