Index: trunk/phase3/includes/api/ApiQueryBase.php |
— | — | @@ -296,7 +296,7 @@ |
297 | 297 | } |
298 | 298 | |
299 | 299 | /** |
300 | | - * Add information (title and namespace) about a Title object to a |
| 300 | + * Add information (title, ID and namespace) about a Title object to a |
301 | 301 | * result array |
302 | 302 | * @param $arr array Result array à la ApiResult |
303 | 303 | * @param $title Title |
— | — | @@ -304,6 +304,7 @@ |
305 | 305 | */ |
306 | 306 | public static function addTitleInfo( &$arr, $title, $prefix = '' ) { |
307 | 307 | $arr[$prefix . 'ns'] = intval( $title->getNamespace() ); |
| 308 | + $arr[$prefix . 'pageid'] = $title->getArticleID(); |
308 | 309 | $arr[$prefix . 'title'] = $title->getPrefixedText(); |
309 | 310 | } |
310 | 311 | |