$entry['lang'] = $bits[0];
if ( $title ) {
- $entry['url'] = wfExpandUrl( $title->getFullURL(), PROTO_HTTP );
+ $entry['url'] = wfExpandUrl( $title->getFullURL() );
}
$this->getResult()->setContent( $entry, $bits[1] );
$result[] = $entry;
$title = Title::newFromText( "{$prefix}:{$title}" );
if ( $title ) {
- $entry['url'] = wfExpandUrl( $title->getFullURL(), PROTO_HTTP );
+ $entry['url'] = wfExpandUrl( $title->getFullURL() );
}
$this->getResult()->setContent( $entry, $title->getFullText() );
);
if ( $this->iwUrl ) {
$title = Title::newFromText( $rawTitleStr );
- $item['url'] = wfExpandUrl( $title->getFullURL(), PROTO_HTTP );
+ $item['url'] = wfExpandUrl( $title->getFullURL() );
}
$intrwValues[] = $item;
}
if ( $params['url'] ) {
$title = Title::newFromText( "{$row->iwl_prefix}:{$row->iwl_title}" );
if ( $title ) {
- $entry['url'] = wfExpandUrl( $title->getFullURL(), PROTO_HTTP );
+ $entry['url'] = wfExpandUrl( $title->getFullURL() );
}
}
if ( !is_null( $thumbParams ) ) {
$mto = $file->transform( $thumbParams );
if ( $mto && !$mto->isError() ) {
- $vals['thumburl'] = wfExpandUrl( $mto->getUrl(), PROTO_HTTP );
+ $vals['thumburl'] = wfExpandUrl( $mto->getUrl() );
// bug 23834 - If the URL's are the same, we haven't resized it, so shouldn't give the wanted
// thumbnail sizes for the thumbnail actual size
}
if ( $this->fld_url ) {
- $pageInfo['fullurl'] = wfExpandUrl( $title->getFullURL(), PROTO_HTTP );
- $pageInfo['editurl'] = wfExpandUrl( $title->getFullURL( 'action=edit' ), PROTO_HTTP );
+ $pageInfo['fullurl'] = wfExpandUrl( $title->getFullURL() );
+ $pageInfo['editurl'] = wfExpandUrl( $title->getFullURL( 'action=edit' ) );
}
if ( $this->fld_readable && $title->userCanRead() ) {
$pageInfo['readable'] = '';
if ( $params['url'] ) {
$title = Title::newFromText( "{$row->ll_lang}:{$row->ll_title}" );
if ( $title ) {
- $entry['url'] = wfExpandUrl( $title->getFullURL(), PROTO_HTTP );
+ $entry['url'] = wfExpandUrl( $title->getFullURL() );
}
}
ApiResult::setContent( $entry, $row->ll_title );
$data = array();
$mainPage = Title::newMainPage();
$data['mainpage'] = $mainPage->getPrefixedText();
- $data['base'] = wfExpandUrl( $mainPage->getFullUrl(), PROTO_HTTP );
+ $data['base'] = wfExpandUrl( $mainPage->getFullUrl() );
$data['sitename'] = $GLOBALS['wgSitename'];
$data['generator'] = "MediaWiki {$GLOBALS['wgVersion']}";
$data['phpversion'] = phpversion();
if ( isset( $langNames[$prefix] ) ) {
$val['language'] = $langNames[$prefix];
}
- $val['url'] = wfExpandUrl( $row['iw_url'], PROTO_HTTP );
+ $val['url'] = wfExpandUrl( $row['iw_url'] );
if( isset( $row['iw_wikiid'] ) ) {
$val['wikiid'] = $row['iw_wikiid'];
}
protected function appendRightsInfo( $property ) {
global $wgRightsPage, $wgRightsUrl, $wgRightsText;
$title = Title::newFromText( $wgRightsPage );
- $url = $title ? wfExpandUrl( $title->getFullURL(), PROTO_HTTP ) : $wgRightsUrl;
+ $url = $title ? wfExpandUrl( $title->getFullURL() ) : $wgRightsUrl;
$text = $wgRightsText;
if ( !$text && $title ) {
$text = $title->getPrefixedText();