| Index: trunk/extensions/GlobalUsage/ApiQueryGlobalUsage.php |
| — | — | @@ -62,8 +62,7 @@ |
| 63 | 63 | 'wiki' => WikiMap::getWikiName( $wiki ) |
| 64 | 64 | ); |
| 65 | 65 | if ( isset( $prop['url'] ) ) { |
| 66 | | - $result['url'] = wfExpandUrl( |
| 67 | | - WikiMap::getForeignUrl( $item['wiki'], $title ) ); |
| | 66 | + $result['url'] = WikiMap::getForeignUrl( $item['wiki'], $title ); |
| 68 | 67 | } |
| 69 | 68 | if ( isset( $prop['pageid'] ) ) { |
| 70 | 69 | $result['pageid'] = $item['id']; |
| Index: trunk/extensions/ContributionTracking/tests/ContributionTrackingAPITest.php |
| — | — | @@ -90,7 +90,7 @@ |
| 91 | 91 | 'business' => 'donations@wikimedia.org', |
| 92 | 92 | 'item_number' => 'DONATE', |
| 93 | 93 | 'no_note' => 0, |
| 94 | | - 'return' => $returnTitle->getFullUrl(), |
| | 94 | + 'return' => wfExpandUrl( $returnTitle->getFullUrl(), PROTO_HTTP ), |
| 95 | 95 | 'currency_code' => 'USD', |
| 96 | 96 | 'cmd' => '_xclick', |
| 97 | 97 | 'notify_url' => 'https://civicrm.wikimedia.org/fundcore_gateway/paypal', |
| — | — | @@ -124,7 +124,7 @@ |
| 125 | 125 | 'business' => 'donations@wikimedia.org', |
| 126 | 126 | 'item_number' => 'DONATE', |
| 127 | 127 | 'no_note' => 0, |
| 128 | | - 'return' => $returnTitle->getFullUrl(), |
| | 128 | + 'return' => wfExpandUrl( $returnTitle->getFullUrl(), PROTO_HTTP ), |
| 129 | 129 | 'currency_code' => 'USD', |
| 130 | 130 | 'cmd' => '_xclick', |
| 131 | 131 | 'notify_url' => 'https://civicrm.wikimedia.org/fundcore_gateway/paypal', |
| — | — | @@ -171,7 +171,7 @@ |
| 172 | 172 | 'business' => 'donations@wikimedia.org', |
| 173 | 173 | 'item_number' => 'DONATE', |
| 174 | 174 | 'no_note' => 0, |
| 175 | | - 'return' => $returnTitle->getFullUrl(), //Important to the language test. |
| | 175 | + 'return' => wfExpandUrl( $returnTitle->getFullUrl(), PROTO_HTTP ), //Important to the language test. |
| 176 | 176 | 'currency_code' => 'USD', |
| 177 | 177 | 'cmd' => '_xclick', |
| 178 | 178 | 'notify_url' => 'https://civicrm.wikimedia.org/fundcore_gateway/paypal', |
| — | — | @@ -209,7 +209,7 @@ |
| 210 | 210 | 'business' => 'donations@wikimedia.org', |
| 211 | 211 | 'item_number' => 'DONATE', |
| 212 | 212 | 'no_note' => 0, |
| 213 | | - 'return' => $returnTitle->getFullUrl(), |
| | 213 | + 'return' => wfExpandUrl( $returnTitle->getFullUrl(), PROTO_HTTP ), |
| 214 | 214 | 'currency_code' => 'USD', |
| 215 | 215 | 'cmd' => '_xclick', |
| 216 | 216 | 'notify_url' => 'https://civicrm.wikimedia.org/fundcore_gateway/paypal', |
| Index: trunk/extensions/ContributionTracking/tests/ContributionTrackingProcessorTest.php |
| — | — | @@ -196,7 +196,7 @@ |
| 197 | 197 | 'business' => 'donations@wikimedia.org', |
| 198 | 198 | 'item_number' => 'DONATE', |
| 199 | 199 | 'no_note' => 0, |
| 200 | | - 'return' => $returnTitle->getFullUrl(), |
| | 200 | + 'return' => wfExpandUrl( $returnTitle->getFullUrl(), PROTO_HTTP ), |
| 201 | 201 | 'currency_code' => 'USD', |
| 202 | 202 | 'cmd' => '_xclick', |
| 203 | 203 | 'notify_url' => 'https://civicrm.wikimedia.org/fundcore_gateway/paypal', |
| — | — | @@ -261,7 +261,7 @@ |
| 262 | 262 | 'business' => 'donations@wikimedia.org', |
| 263 | 263 | 'item_number' => 'DONATE', |
| 264 | 264 | 'no_note' => 0, |
| 265 | | - 'return' => $returnTitle->getFullURL(), //Important to the language test. |
| | 265 | + 'return' => wfExpandUrl( $returnTitle->getFullUrl(), PROTO_HTTP ), //Important to the language test. |
| 266 | 266 | 'currency_code' => 'USD', |
| 267 | 267 | 'cmd' => '_xclick', |
| 268 | 268 | 'notify_url' => 'https://civicrm.wikimedia.org/fundcore_gateway/paypal', |
| — | — | @@ -288,7 +288,7 @@ |
| 289 | 289 | 'business' => 'donations@wikimedia.org', |
| 290 | 290 | 'item_number' => 'DONATE', |
| 291 | 291 | 'no_note' => 0, |
| 292 | | - 'return' => $returnTitle->getFullURL(), |
| | 292 | + 'return' => wfExpandUrl( $returnTitle->getFullUrl(), PROTO_HTTP ), |
| 293 | 293 | 'currency_code' => 'USD', |
| 294 | 294 | 'cmd' => '_xclick', |
| 295 | 295 | 'notify_url' => 'https://civicrm.wikimedia.org/fundcore_gateway/paypal', |
| Index: trunk/extensions/ContributionTracking/tests/ContributionTrackingTest.php |
| — | — | @@ -113,7 +113,7 @@ |
| 114 | 114 | 'business' => 'donations@wikimedia.org', |
| 115 | 115 | 'item_number' => 'DONATE', |
| 116 | 116 | 'no_note' => 0, |
| 117 | | - 'return' => $returnTitle->getFullUrl(), |
| | 117 | + 'return' => wfExpandUrl( $returnTitle->getFullUrl(), PROTO_HTTP ), |
| 118 | 118 | 'currency_code' => 'USD', |
| 119 | 119 | 'cmd' => '_xclick', |
| 120 | 120 | 'notify_url' => 'https://civicrm.wikimedia.org/fundcore_gateway/paypal', |
| — | — | @@ -147,7 +147,7 @@ |
| 148 | 148 | 'business' => 'donations@wikimedia.org', |
| 149 | 149 | 'item_number' => 'DONATE', |
| 150 | 150 | 'no_note' => 0, |
| 151 | | - 'return' => $returnTitle->getFullUrl(), |
| | 151 | + 'return' => wfExpandUrl( $returnTitle->getFullUrl(), PROTO_HTTP ), |
| 152 | 152 | 'currency_code' => 'USD', |
| 153 | 153 | 'cmd' => '_xclick', |
| 154 | 154 | 'notify_url' => 'https://civicrm.wikimedia.org/fundcore_gateway/paypal', |
| — | — | @@ -194,7 +194,7 @@ |
| 195 | 195 | 'business' => 'donations@wikimedia.org', |
| 196 | 196 | 'item_number' => 'DONATE', |
| 197 | 197 | 'no_note' => 0, |
| 198 | | - 'return' => $returnTitle->getFullUrl(), //Important to the language test. |
| | 198 | + 'return' => wfExpandUrl( $returnTitle->getFullUrl(), PROTO_HTTP ), //Important to the language test. |
| 199 | 199 | 'currency_code' => 'USD', |
| 200 | 200 | 'cmd' => '_xclick', |
| 201 | 201 | 'notify_url' => 'https://civicrm.wikimedia.org/fundcore_gateway/paypal', |
| — | — | @@ -233,7 +233,7 @@ |
| 234 | 234 | 'business' => 'donations@wikimedia.org', |
| 235 | 235 | 'item_number' => 'DONATE', |
| 236 | 236 | 'no_note' => 0, |
| 237 | | - 'return' => $returnTitle->getFullUrl(), |
| | 237 | + 'return' => wfExpandUrl( $returnTitle->getFullUrl(), PROTO_HTTP ), |
| 238 | 238 | 'currency_code' => 'USD', |
| 239 | 239 | 'cmd' => '_xclick', |
| 240 | 240 | 'notify_url' => 'https://civicrm.wikimedia.org/fundcore_gateway/paypal', |
| Index: trunk/extensions/ContributionTracking/ContributionTracking.processor.php |
| — | — | @@ -322,7 +322,7 @@ |
| 323 | 323 | $returnText = $input['return']; |
| 324 | 324 | $returnTitle = Title::newFromText( $returnText ); |
| 325 | 325 | if ( $returnTitle ) { |
| 326 | | - $returnto = $returnTitle->getFullUrl(); |
| | 326 | + $returnto = wfExpandUrl( $returnTitle->getFullUrl(), PROTO_CURRENT ); |
| 327 | 327 | } else { |
| 328 | 328 | $returnto = $wgContributionTrackingReturnToURLDefault . "/$language"; |
| 329 | 329 | } |
| Index: trunk/extensions/MobileFrontend/MobileFrontend.php |
| — | — | @@ -327,7 +327,7 @@ |
| 328 | 328 | if ( $mobileAction == 'opt_in_cookie' ) { |
| 329 | 329 | $this->setOptInOutCookie( '1' ); |
| 330 | 330 | $this->disableCaching(); |
| 331 | | - $location = Title::newMainPage()->getFullURL(); |
| | 331 | + $location = wfExpandUrl( Title::newMainPage()->getFullURL(), PROTO_CURRENT ); |
| 332 | 332 | $wgRequest->response()->header( 'Location: ' . $location ); |
| 333 | 333 | } |
| 334 | 334 | |
| Index: trunk/extensions/SpamBlacklist/SpamBlacklist_body.php |
| — | — | @@ -35,7 +35,7 @@ |
| 36 | 36 | } |
| 37 | 37 | } |
| 38 | 38 | |
| 39 | | - $thisHttp = $title->getFullUrl( 'action=raw' ); |
| | 39 | + $thisHttp = wfExpandUrl( $title->getFullUrl( 'action=raw' ), PROT_HTTP ); |
| 40 | 40 | $thisHttpRegex = '/^' . preg_quote( $thisHttp, '/' ) . '(?:&.*)?$/'; |
| 41 | 41 | |
| 42 | 42 | foreach( $this->files as $fileName ) { |
| Index: trunk/extensions/CentralNotice/special/SpecialCentralNoticeLogs.php |
| — | — | @@ -53,7 +53,7 @@ |
| 54 | 54 | $htmlOut .= Xml::element( 'h2', null, wfMsg( 'centralnotice-view-logs' ) ); |
| 55 | 55 | $htmlOut .= Xml::openElement( 'div', array( 'id' => 'cn-log-switcher' ) ); |
| 56 | 56 | $title = SpecialPage::getTitleFor( 'CentralNoticeLogs' ); |
| 57 | | - $fullUrl = $title->getFullUrl(); |
| | 57 | + $fullUrl = wfExpandUrl( $title->getFullUrl(), PROTO_CURRENT ); |
| 58 | 58 | |
| 59 | 59 | $htmlOut .= Xml::radio( |
| 60 | 60 | 'log_type', |
| Index: trunk/extensions/OpenSearchXml/ApiOpenSearchXml.php |
| — | — | @@ -122,11 +122,11 @@ |
| 123 | 123 | $item = array(); |
| 124 | 124 | $item['Text']['*'] = $title->getPrefixedText(); |
| 125 | 125 | $item['Description']['*'] = $extract; |
| 126 | | - $item['Url']['*'] = $title->getFullUrl(); |
| | 126 | + $item['Url']['*'] = wfExpandUrl( $title->getFullUrl(), PROTO_CURRENT ); |
| 127 | 127 | if( $image ) { |
| 128 | 128 | $thumb = $image->transform( array( 'width' => 50, 'height' => 50 ), 0 ); |
| 129 | 129 | $item['Image'] = array( |
| 130 | | - 'source' => wfExpandUrl( $thumb->getUrl() ), |
| | 130 | + 'source' => wfExpandUrl( $thumb->getUrl(), PROTO_CANONICAL ), |
| 131 | 131 | //alt |
| 132 | 132 | 'width' => $thumb->getWidth(), |
| 133 | 133 | 'height' => $thumb->getHeight() ); |