|
@@ 255-260 (lines=6) @@
|
| 252 |
|
$result_array['wikitext'] = $this->content->serialize( $format ); |
| 253 |
|
$result_array[ApiResult::META_BC_SUBELEMENTS][] = 'wikitext'; |
| 254 |
|
} |
| 255 |
|
if ( !is_null( $params['summary'] ) || |
| 256 |
|
( !is_null( $params['sectiontitle'] ) && $this->section === 'new' ) |
| 257 |
|
) { |
| 258 |
|
$result_array['parsedsummary'] = $this->formatSummary( $titleObj, $params ); |
| 259 |
|
$result_array[ApiResult::META_BC_SUBELEMENTS][] = 'parsedsummary'; |
| 260 |
|
} |
| 261 |
|
|
| 262 |
|
$result->addValue( null, $this->getModuleName(), $result_array ); |
| 263 |
|
|
|
@@ 297-302 (lines=6) @@
|
| 294 |
|
$result_array[ApiResult::META_BC_SUBELEMENTS][] = 'text'; |
| 295 |
|
} |
| 296 |
|
|
| 297 |
|
if ( !is_null( $params['summary'] ) || |
| 298 |
|
( !is_null( $params['sectiontitle'] ) && $this->section === 'new' ) |
| 299 |
|
) { |
| 300 |
|
$result_array['parsedsummary'] = $this->formatSummary( $titleObj, $params ); |
| 301 |
|
$result_array[ApiResult::META_BC_SUBELEMENTS][] = 'parsedsummary'; |
| 302 |
|
} |
| 303 |
|
|
| 304 |
|
if ( isset( $prop['langlinks'] ) ) { |
| 305 |
|
$langlinks = $p_result->getLanguageLinks(); |