Index: trunk/phase3/RELEASE-NOTES-1.19 |
— | — | @@ -166,6 +166,8 @@ |
167 | 167 | * (bug 26763) Make RSS/Atom of user contributions more visible |
168 | 168 | * (bug 25133) Allow redirects also for action=parse&pageid |
169 | 169 | * (bug 29745) Fatal error in API search |
| 170 | +* (bug 29476) API returns page title instead of sectiontitle for |
| 171 | + srprop=sectiontitle |
170 | 172 | |
171 | 173 | === Languages updated in 1.19 === |
172 | 174 | |
Index: trunk/phase3/includes/api/ApiQuerySearch.php |
— | — | @@ -162,7 +162,7 @@ |
163 | 163 | } |
164 | 164 | if ( !is_null( $result->getSectionTitle() ) ) { |
165 | 165 | if ( isset( $prop['sectiontitle'] ) ) { |
166 | | - $vals['sectiontitle'] = $result->getSectionTitle(); |
| 166 | + $vals['sectiontitle'] = $result->getSectionTitle()->getFragment(); |
167 | 167 | } |
168 | 168 | if ( isset( $prop['sectionsnippet'] ) ) { |
169 | 169 | $vals['sectionsnippet'] = $result->getSectionSnippet(); |