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:
87fbe10
)
(bug 16748) Null revisions are stored in the DB with rev_len=NULL. Patch by Paul...
author
Roan Kattouw
<catrope@users.mediawiki.org>
Sun, 21 Dec 2008 22:35:52 +0000
(22:35 +0000)
committer
Roan Kattouw
<catrope@users.mediawiki.org>
Sun, 21 Dec 2008 22:35:52 +0000
(22:35 +0000)
includes/Revision.php
patch
|
blob
|
history
diff --git
a/includes/Revision.php
b/includes/Revision.php
index
ab017f9
..
a6147ba
100644
(file)
--- a/
includes/Revision.php
+++ b/
includes/Revision.php
@@
-906,7
+906,7
@@
class Revision {
$current = $dbw->selectRow(
array( 'page', 'revision' ),
- array( 'page_latest', 'rev_text_id' ),
+ array( 'page_latest', 'rev_text_id'
, 'rev_len'
),
array(
'page_id' => $pageId,
'page_latest=rev_id',
@@
-919,7
+919,8
@@
class Revision {
'comment' => $summary,
'minor_edit' => $minor,
'text_id' => $current->rev_text_id,
- 'parent_id' => $current->page_latest
+ 'parent_id' => $current->page_latest,
+ 'len' => $current->rev_len
) );
} else {
$revision = null;