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:
8075446
)
Avoid extra parent id query on rev creation; only needs to be done if the current...
author
Aaron Schulz
<aaron@users.mediawiki.org>
Thu, 15 Jan 2009 17:48:14 +0000
(17:48 +0000)
committer
Aaron Schulz
<aaron@users.mediawiki.org>
Thu, 15 Jan 2009 17:48:14 +0000
(17:48 +0000)
includes/Revision.php
patch
|
blob
|
history
diff --git
a/includes/Revision.php
b/includes/Revision.php
index
37c2260
..
5fef68c
100644
(file)
--- a/
includes/Revision.php
+++ b/
includes/Revision.php
@@
-819,7
+819,8
@@
class Revision {
'rev_timestamp' => $dbw->timestamp( $this->mTimestamp ),
'rev_deleted' => $this->mDeleted,
'rev_len' => $this->mSize,
- 'rev_parent_id' => $this->mParentId ? $this->mParentId : $this->getPreviousRevisionId( $dbw )
+ 'rev_parent_id' => is_null($this->mParentId) ?
+ $this->getPreviousRevisionId( $dbw ) : $this->mParentId
), __METHOD__
);