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:
05dd02d
)
Updated Revision::newFromId() callers to use READ_LATEST as needed
author
Aaron Schulz
<aschulz@wikimedia.org>
Thu, 12 Mar 2015 23:47:21 +0000
(16:47 -0700)
committer
Aaron Schulz
<aschulz@wikimedia.org>
Thu, 12 Mar 2015 23:47:21 +0000
(16:47 -0700)
Change-Id: Idcc071e99a712cf3208c10059d476dafe95044cf
includes/page/WikiPage.php
patch
|
blob
|
history
diff --git
a/includes/page/WikiPage.php
b/includes/page/WikiPage.php
index
b1e4f2d
..
23bbc7c
100644
(file)
--- a/
includes/page/WikiPage.php
+++ b/
includes/page/WikiPage.php
@@
-3061,7
+3061,7
@@
class WikiPage implements Page, IDBAccessObject {
}
// Generate the edit summary if necessary
- $target = Revision::newFromId( $s->rev_id );
+ $target = Revision::newFromId( $s->rev_id
, Revision::READ_LATEST
);
if ( empty( $summary ) ) {
if ( $from == '' ) { // no public user name
$summary = wfMessage( 'revertpage-nouser' );