From 859ff802ca742397cf34e847cbbda8963649373e Mon Sep 17 00:00:00 2001 From: Bryan Tong Minh Date: Mon, 4 Jan 2010 11:13:25 +0000 Subject: [PATCH] API: Expand the thumburl to an absolute url to make it consistent with url and descriptionurl --- RELEASE-NOTES | 2 ++ includes/api/ApiQueryImageInfo.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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() ); } -- 2.20.1