* (bug 25760) counter property still reported by the API when
$wgDisableCounters enabled
* (bug 25987) prop=info&inprop=watched now also works for missing pages
+* (bug 26006) prop=langlinks now allows obtaining full URL
=== Languages updated in 1.17 ===
break;
}
$entry = array( 'lang' => $row->ll_lang );
+ if ( !is_null( $params['url'] ) ) {
+ $title = Title::newFromText( "{$row->ll_lang}:{$row->ll_title}" );
+ if ( $title ) {
+ $entry = array_merge( $entry, array( 'url' => $title->getFullURL() ) );
+ }
+ }
ApiResult::setContent( $entry, $row->ll_title );
$fit = $this->addPageSubItem( $row->ll_from, $entry );
if ( !$fit ) {
ApiBase::PARAM_MAX2 => ApiBase::LIMIT_BIG2
),
'continue' => null,
+ 'url' => null,
);
}
return array(
'limit' => 'How many langlinks to return',
'continue' => 'When more results are available, use this to continue',
+ 'url' => 'Whether to get the full URL',
);
}