From: Alexandre Emsenhuber Date: Sat, 2 Jun 2012 16:36:48 +0000 (+0200) Subject: Select all nedded fields for Title::newFromRow() when fetch a revision from the database. X-Git-Tag: 1.31.0-rc.0~23443 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22sites_tous%22%29%20.%20%22?a=commitdiff_plain;h=799a291c7016463d38b220c9cfa628f9a7d2cbe7;p=lhc%2Fweb%2Fwiklou.git 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 --- 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', ); }