Index: trunk/phase3/includes/api/ApiQueryInfo.php |
— | — | @@ -210,6 +210,7 @@ |
211 | 211 | $this->fld_url = isset( $prop['url'] ); |
212 | 212 | $this->fld_readable = isset( $prop['readable'] ); |
213 | 213 | $this->fld_preload = isset( $prop['preload'] ); |
| 214 | + $this->fld_displaytitle = isset( $prop['displaytitle'] ); |
214 | 215 | } |
215 | 216 | |
216 | 217 | $pageSet = $this->getPageSet(); |
— | — | @@ -290,6 +291,7 @@ |
291 | 292 | $pageInfo['lastrevid'] = intval( $this->pageLatest[$pageid] ); |
292 | 293 | $pageInfo['counter'] = intval( $this->pageCounter[$pageid] ); |
293 | 294 | $pageInfo['length'] = intval( $this->pageLength[$pageid] ); |
| 295 | + |
294 | 296 | if ( $this->pageIsRedir[$pageid] ) { |
295 | 297 | $pageInfo['redirect'] = ''; |
296 | 298 | } |
— | — | @@ -347,11 +349,17 @@ |
348 | 350 | if ( $title->exists() ) { |
349 | 351 | $pageInfo['preload'] = ''; |
350 | 352 | } else { |
| 353 | + $text = null; |
351 | 354 | wfRunHooks( 'EditFormPreloadText', array( &$text, &$title ) ); |
352 | 355 | |
353 | 356 | $pageInfo['preload'] = $text; |
354 | 357 | } |
355 | 358 | } |
| 359 | + |
| 360 | + if ( $this->fld_displaytitle ) { |
| 361 | + |
| 362 | + } |
| 363 | + |
356 | 364 | return $pageInfo; |
357 | 365 | } |
358 | 366 | |
— | — | @@ -602,7 +610,8 @@ |
603 | 611 | ' subjectid - The page ID of the parent page for each talk page', |
604 | 612 | ' url - Gives a full URL to the page, and also an edit URL', |
605 | 613 | ' readable - Whether the user can read this page', |
606 | | - ' preload - Gives the text returned by EditFormPreloadText' |
| 614 | + ' preload - Gives the text returned by EditFormPreloadText', |
| 615 | + ' displaytitle - Gives the way the page title is actually displayed', |
607 | 616 | ), |
608 | 617 | 'token' => 'Request a token to perform a data-modifying action on a page', |
609 | 618 | 'continue' => 'When more results are available, use this to continue', |