Index: trunk/phase3/includes/api/ApiParse.php |
— | — | @@ -152,7 +152,9 @@ |
153 | 153 | if(isset($prop['sections'])) |
154 | 154 | $result_array['sections'] = $p_result->getSections(); |
155 | 155 | if(isset($prop['displaytitle'])) |
156 | | - $result_array['displaytitle'] = $p_result->getDisplayTitle(); |
| 156 | + $result_array['displaytitle'] = $p_result->getDisplayTitle() ? |
| 157 | + $p_result->getDisplayTitle() : |
| 158 | + $titleObj->getPrefixedText(); |
157 | 159 | if(!is_null($oldid)) |
158 | 160 | $result_array['revid'] = $oldid; |
159 | 161 | |