Index: trunk/phase3/includes/api/ApiParse.php |
— | — | @@ -322,7 +322,13 @@ |
323 | 323 | foreach ( $titles as $title => $id ) { |
324 | 324 | $entry = array(); |
325 | 325 | $entry['prefix'] = $prefix; |
326 | | - $this->getResult()->setContent( $entry, Title::makeTitle( $ns, $title )->getFullText() ); |
| 326 | + |
| 327 | + $title = Title::newFromText( "{$prefix}:{$title}" ); |
| 328 | + if ( $title ) { |
| 329 | + $entry['url'] = $title->getFullURL(); |
| 330 | + } |
| 331 | + |
| 332 | + $this->getResult()->setContent( $entry, $title->getFullText() ); |
327 | 333 | $result[] = $entry; |
328 | 334 | } |
329 | 335 | } |