Index: trunk/phase3/includes/filerepo/LocalFile.php |
— | — | @@ -883,10 +883,11 @@ |
884 | 884 | |
885 | 885 | if( $descTitle->exists() ) { |
886 | 886 | # Create a null revision |
| 887 | + $latest = $descTitle->getLatestRevID(); |
887 | 888 | $nullRevision = Revision::newNullRevision( $dbw, $descTitle->getArticleId(), $log->getRcComment(), false ); |
888 | 889 | $nullRevision->insertOn( $dbw ); |
889 | 890 | |
890 | | - wfRunHooks( 'NewRevisionFromEditComplete', array($article, $nullRevision, false) ); |
| 891 | + wfRunHooks( 'NewRevisionFromEditComplete', array($article, $nullRevision, $latest) ); |
891 | 892 | $article->updateRevisionOn( $dbw, $nullRevision ); |
892 | 893 | |
893 | 894 | # Invalidate the cache for the description page |