Select all nedded fields for Title::newFromRow() when fetch a revision from the database.
authorAlexandre Emsenhuber <ialex.wiki@gmail.com>
Sat, 2 Jun 2012 16:36:48 +0000 (18:36 +0200)
committerAlexandre 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

index d47c9b4..6dbd808 100644 (file)
@@ -381,7 +381,9 @@ class Revision {
                        'page_namespace',
                        'page_title',
                        'page_id',
-                       'page_latest'
+                       'page_latest',
+                       'page_is_redirect',
+                       'page_len',
                );
        }