API: Expand the thumburl to an absolute url to make it consistent with url and descri...
authorBryan Tong Minh <btongminh@users.mediawiki.org>
Mon, 4 Jan 2010 11:13:25 +0000 (11:13 +0000)
committerBryan Tong Minh <btongminh@users.mediawiki.org>
Mon, 4 Jan 2010 11:13:25 +0000 (11:13 +0000)
RELEASE-NOTES
includes/api/ApiQueryImageInfo.php

index 1d94cc6..332d23a 100644 (file)
@@ -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 ===
 
index aa08ae0..e230a00 100644 (file)
@@ -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() );
                                }