From: Bryan Tong Minh Date: Mon, 4 Jan 2010 11:13:25 +0000 (+0000) Subject: API: Expand the thumburl to an absolute url to make it consistent with url and descri... X-Git-Tag: 1.31.0-rc.0~38419 X-Git-Url: https://git.cyclocoop.org/%28%28?a=commitdiff_plain;h=859ff802ca742397cf34e847cbbda8963649373e;p=lhc%2Fweb%2Fwiklou.git API: Expand the thumburl to an absolute url to make it consistent with url and descriptionurl --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 1d94cc6dc0..332d23a76f 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -753,6 +753,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 21441) meta=userinfo&uiprop=options no longer returns default options for logged-in users under certain circumstances * (bug 21945) Add chomp control in YAML +* Expand the thumburl to an absolute url to make it consistent with url and + descriptionurl === Languages updated in 1.16 === diff --git a/includes/api/ApiQueryImageInfo.php b/includes/api/ApiQueryImageInfo.php index aa08ae0363..e230a008c3 100644 --- a/includes/api/ApiQueryImageInfo.php +++ b/includes/api/ApiQueryImageInfo.php @@ -198,7 +198,7 @@ class ApiQueryImageInfo extends ApiQueryBase { $mto = $file->transform( array( 'width' => $scale['width'], 'height' => $scale['height'] ) ); if( $mto && !$mto->isError() ) { - $vals['thumburl'] = $mto->getUrl(); + $vals['thumburl'] = wfExpandUrl( $mto->getUrl() ); $vals['thumbwidth'] = intval( $mto->getWidth() ); $vals['thumbheight'] = intval( $mto->getHeight() ); }