r38112 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r38111‎ | r38112 | r38113 >
Date:21:50, 27 July 2008
Author:aaron
Status:old
Tags:
Comment:
Set baserevid (bug 14918)
Modified paths:
  • /trunk/phase3/includes/filerepo/LocalFile.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/filerepo/LocalFile.php
@@ -883,10 +883,11 @@
884884
885885 if( $descTitle->exists() ) {
886886 # Create a null revision
 887+ $latest = $descTitle->getLatestRevID();
887888 $nullRevision = Revision::newNullRevision( $dbw, $descTitle->getArticleId(), $log->getRcComment(), false );
888889 $nullRevision->insertOn( $dbw );
889890
890 - wfRunHooks( 'NewRevisionFromEditComplete', array($article, $nullRevision, false) );
 891+ wfRunHooks( 'NewRevisionFromEditComplete', array($article, $nullRevision, $latest) );
891892 $article->updateRevisionOn( $dbw, $nullRevision );
892893
893894 # Invalidate the cache for the description page

Status & tagging log