dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b4d3757
)
Special:Undelete doesn't update page_latest when undeleted revision was newer than...
author
River Tarnell
<river@users.mediawiki.org>
Tue, 8 May 2007 09:26:58 +0000
(09:26 +0000)
committer
River Tarnell
<river@users.mediawiki.org>
Tue, 8 May 2007 09:26:58 +0000
(09:26 +0000)
includes/SpecialUndelete.php
patch
|
blob
|
history
diff --git
a/includes/SpecialUndelete.php
b/includes/SpecialUndelete.php
index
c31709b
..
7a322db
100644
(file)
--- a/
includes/SpecialUndelete.php
+++ b/
includes/SpecialUndelete.php
@@
-418,11
+418,10
@@
class PageArchive {
}
if( $revision ) {
- # FIXME: Update latest if newer as well...
- if( $newid ) {
- // Attach the latest revision to the page...
- $article->updateRevisionOn( $dbw, $revision, $previousRevId );
-
+ // Attach the latest revision to the page...
+ $wasnew = $article->updateIfNewerOn( $dbw, $revision, $previousRevId );
+
+ if( $newid || $wasnew ) {
// Update site stats, link tables, etc
$article->createUpdates( $revision );
}