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:
f045091
)
*Update page_latest to reflect the null revision, like protection and such do. This...
author
Aaron Schulz
<aaron@users.mediawiki.org>
Mon, 13 Aug 2007 06:29:08 +0000
(06:29 +0000)
committer
Aaron Schulz
<aaron@users.mediawiki.org>
Mon, 13 Aug 2007 06:29:08 +0000
(06:29 +0000)
includes/SpecialImport.php
patch
|
blob
|
history
diff --git
a/includes/SpecialImport.php
b/includes/SpecialImport.php
index
8dee732
..
0dd25e7
100644
(file)
--- a/
includes/SpecialImport.php
+++ b/
includes/SpecialImport.php
@@
-208,7
+208,17
@@
class ImportReporter {
$dbw = wfGetDB( DB_MASTER );
$nullRevision = Revision::newNullRevision(
$dbw, $title->getArticleId(), $comment, true );
- $nullRevision->insertOn( $dbw );
+ $nullRevId = $nullRevision->insertOn( $dbw );
+
+ # Update page record
+ $dbw->update( 'page',
+ array( /* SET */
+ 'page_touched' => $dbw->timestamp(),
+ 'page_latest' => $nullRevId
+ ), array( /* WHERE */
+ 'page_id' => $title->getArticleId()
+ ), __METHOD__
+ );
}
}