Page MenuHomePhabricator

Image.php.patch

Authored By
bzimport
Nov 21 2014, 7:01 PM
Size
645 B
Referenced Files
None
Subscribers
None

Image.php.patch

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

Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1241
Default Alt Text
Image.php.patch (645 B)

Event Timeline