Set baserevid (bug 14918)
This commit is contained in:
parent
a9415c3278
commit
2704f11ba8
1 changed files with 2 additions and 1 deletions
|
|
@ -883,10 +883,11 @@ class LocalFile extends File
|
|||
|
||||
if( $descTitle->exists() ) {
|
||||
# Create a null revision
|
||||
$latest = $descTitle->getLatestRevID();
|
||||
$nullRevision = Revision::newNullRevision( $dbw, $descTitle->getArticleId(), $log->getRcComment(), false );
|
||||
$nullRevision->insertOn( $dbw );
|
||||
|
||||
wfRunHooks( 'NewRevisionFromEditComplete', array($article, $nullRevision, false) );
|
||||
wfRunHooks( 'NewRevisionFromEditComplete', array($article, $nullRevision, $latest) );
|
||||
$article->updateRevisionOn( $dbw, $nullRevision );
|
||||
|
||||
# Invalidate the cache for the description page
|
||||
|
|
|
|||
Loading…
Reference in a new issue