Index: trunk/phase3/includes/api/ApiParse.php |
— | — | @@ -324,7 +324,12 @@ |
325 | 325 | foreach ( $links as $link ) { |
326 | 326 | $entry = array(); |
327 | 327 | $bits = explode( ':', $link, 2 ); |
| 328 | + $title = Title::newFromText( $link ); |
| 329 | + |
328 | 330 | $entry['lang'] = $bits[0]; |
| 331 | + if ( $title ) { |
| 332 | + $entry['url'] = $title->getFullURL(); |
| 333 | + } |
329 | 334 | $this->getResult()->setContent( $entry, $bits[1] ); |
330 | 335 | $result[] = $entry; |
331 | 336 | } |