r60601 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r60600‎ | r60601 | r60602 >
Date:11:13, 4 January 2010
Author:btongminh
Status:ok
Tags:
Comment:
API: Expand the thumburl to an absolute url to make it consistent with url and descriptionurl
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/includes/api/ApiQueryImageInfo.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiQueryImageInfo.php
@@ -198,7 +198,7 @@
199199 $mto = $file->transform( array( 'width' => $scale['width'], 'height' => $scale['height'] ) );
200200 if( $mto && !$mto->isError() )
201201 {
202 - $vals['thumburl'] = $mto->getUrl();
 202+ $vals['thumburl'] = wfExpandUrl( $mto->getUrl() );
203203 $vals['thumbwidth'] = intval( $mto->getWidth() );
204204 $vals['thumbheight'] = intval( $mto->getHeight() );
205205 }
Index: trunk/phase3/RELEASE-NOTES
@@ -753,6 +753,8 @@
754754 * (bug 21441) meta=userinfo&uiprop=options no longer returns default options
755755 for logged-in users under certain circumstances
756756 * (bug 21945) Add chomp control in YAML
 757+* Expand the thumburl to an absolute url to make it consistent with url and
 758+ descriptionurl
757759
758760 === Languages updated in 1.16 ===
759761

Status & tagging log