From: Alexandre Emsenhuber Date: Tue, 31 Jan 2012 10:26:22 +0000 (+0000) Subject: Added 'page_id' to the fields returned by Revision::selectPageFields() so that the... X-Git-Tag: 1.31.0-rc.0~24993 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmembres/cotisations/gestion/rappel_supprimer.php?a=commitdiff_plain;h=c6e1f399a59db03b72886e6b7b24e703df0349f2;p=lhc%2Fweb%2Fwiklou.git Added 'page_id' to the fields returned by Revision::selectPageFields() so that the Title object created in Revision::__construct() already knows its id and it doesn't have to issue another DB query to load it (happens e.g. in api.php?action=parse&oldid=... calls) --- diff --git a/includes/Revision.php b/includes/Revision.php index ba28999d6b..b254e81026 100644 --- a/includes/Revision.php +++ b/includes/Revision.php @@ -357,6 +357,7 @@ class Revision { return array( 'page_namespace', 'page_title', + 'page_id', 'page_latest' ); }