From 799a291c7016463d38b220c9cfa628f9a7d2cbe7 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Sat, 2 Jun 2012 18:36:48 +0200 Subject: [PATCH] Select all nedded fields for Title::newFromRow() when fetch a revision from the database. 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 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/includes/Revision.php b/includes/Revision.php index d47c9b4ef4..6dbd808a54 100644 --- 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', ); } -- 2.20.1