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:
07a7479
)
Select all nedded fields for Title::newFromRow() when fetch a revision from the database.
author
Alexandre Emsenhuber
<ialex.wiki@gmail.com>
Sat, 2 Jun 2012 16:36:48 +0000
(18:36 +0200)
committer
Alexandre Emsenhuber
<ialex.wiki@gmail.com>
Sat, 2 Jun 2012 16:39:20 +0000
(18:39 +0200)
Otherwise MW will throw an exception with the message "LinkCache doesn't currently know about this title"
when accessing redirect or len items of these Title objects, e.g. in Special:RevisionDelete.
Change-Id: I07978145df78bddac894bdac087c5d62b03759b3
includes/Revision.php
patch
|
blob
|
history
diff --git
a/includes/Revision.php
b/includes/Revision.php
index
d47c9b4
..
6dbd808
100644
(file)
--- a/
includes/Revision.php
+++ b/
includes/Revision.php
@@
-381,7
+381,9
@@
class Revision {
'page_namespace',
'page_title',
'page_id',
- 'page_latest'
+ 'page_latest',
+ 'page_is_redirect',
+ 'page_len',
);
}