From: Aaron Schulz Date: Sun, 19 Aug 2007 16:34:45 +0000 (+0000) Subject: *Update page on null revisions made for uploads X-Git-Tag: 1.31.0-rc.0~51734 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=39495794ca8e5311c7ea557b365d895edf7b2e9d;p=lhc%2Fweb%2Fwiklou.git *Update page on null revisions made for uploads --- diff --git a/includes/filerepo/ICRepo.php b/includes/filerepo/ICRepo.php index 083876a6e6..124fe2b666 100644 --- a/includes/filerepo/ICRepo.php +++ b/includes/filerepo/ICRepo.php @@ -290,6 +290,7 @@ class ICFile extends LocalFile{ # Create a null revision $nullRevision = Revision::newNullRevision( $dbw, $descTitle->getArticleId(), $log->getRcComment(), false ); $nullRevision->insertOn( $dbw ); + $article->updateRevisionOn( $dbw, $nullRevision ); # Invalidate the cache for the description page $descTitle->invalidateCache(); diff --git a/includes/filerepo/LocalFile.php b/includes/filerepo/LocalFile.php index 09e3461474..d8f49efae1 100644 --- a/includes/filerepo/LocalFile.php +++ b/includes/filerepo/LocalFile.php @@ -787,6 +787,7 @@ class LocalFile extends File # Create a null revision $nullRevision = Revision::newNullRevision( $dbw, $descTitle->getArticleId(), $log->getRcComment(), false ); $nullRevision->insertOn( $dbw ); + $article->updateRevisionOn( $dbw, $nullRevision ); # Invalidate the cache for the description page $descTitle->invalidateCache();