From: Brion Vibber Date: Tue, 20 Dec 2011 21:37:04 +0000 (+0000) Subject: Provisional revert of r105831: as noted it's not safe; alternative fix was a weird... X-Git-Tag: 1.31.0-rc.0~25852 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=e5e8ec7b621f8ffeaa629dfcce69b843914e8df7;p=lhc%2Fweb%2Fwiklou.git Provisional revert of r105831: as noted it's not safe; alternative fix was a weird abstraction violation that would leave you not knowing whether the data would be present or not. --- diff --git a/includes/api/ApiQueryBase.php b/includes/api/ApiQueryBase.php index e3cf51f50c..4fe82de0cb 100644 --- a/includes/api/ApiQueryBase.php +++ b/includes/api/ApiQueryBase.php @@ -296,7 +296,7 @@ abstract class ApiQueryBase extends ApiBase { } /** - * Add information (title, ID and namespace) about a Title object to a + * Add information (title and namespace) about a Title object to a * result array * @param $arr array Result array à la ApiResult * @param $title Title @@ -304,7 +304,6 @@ abstract class ApiQueryBase extends ApiBase { */ public static function addTitleInfo( &$arr, $title, $prefix = '' ) { $arr[$prefix . 'ns'] = intval( $title->getNamespace() ); - $arr[$prefix . 'pageid'] = $title->getArticleID(); $arr[$prefix . 'title'] = $title->getPrefixedText(); }