Index: trunk/phase3/includes/api/ApiParse.php |
— | — | @@ -151,6 +151,8 @@ |
152 | 152 | $result_array['externallinks'] = array_keys($p_result->getExternalLinks()); |
153 | 153 | if(isset($prop['sections'])) |
154 | 154 | $result_array['sections'] = $p_result->getSections(); |
| 155 | + if(isset($prop['displaytitle'])) |
| 156 | + $result_array['displaytitle'] = $p_result->getDisplayTitle(); |
155 | 157 | if(!is_null($oldid)) |
156 | 158 | $result_array['revid'] = $oldid; |
157 | 159 | |
— | — | @@ -223,7 +225,7 @@ |
224 | 226 | 'redirects' => false, |
225 | 227 | 'oldid' => null, |
226 | 228 | 'prop' => array( |
227 | | - ApiBase :: PARAM_DFLT => 'text|langlinks|categories|links|templates|images|externallinks|sections|revid', |
| 229 | + ApiBase :: PARAM_DFLT => 'text|langlinks|categories|links|templates|images|externallinks|sections|revid|displaytitle', |
228 | 230 | ApiBase :: PARAM_ISMULTI => true, |
229 | 231 | ApiBase :: PARAM_TYPE => array( |
230 | 232 | 'text', |
— | — | @@ -234,7 +236,8 @@ |
235 | 237 | 'images', |
236 | 238 | 'externallinks', |
237 | 239 | 'sections', |
238 | | - 'revid' |
| 240 | + 'revid', |
| 241 | + 'displaytitle', |
239 | 242 | ) |
240 | 243 | ), |
241 | 244 | 'pst' => false, |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -139,6 +139,7 @@ |
140 | 140 | * (bug 17182) Fix pretty printer so URLs with parentheses in them are |
141 | 141 | autolinked correctly |
142 | 142 | * (bug 17224) Added siprop=rightsinfo to meta=siteinfo |
| 143 | +* (bug 17239) Added prop=displaytitle to action=parse |
143 | 144 | |
144 | 145 | === Languages updated in 1.15 === |
145 | 146 | |