http://www.mediawiki.org/wiki/Special:Code/MediaWiki/95855

Revision: 95855
Author:   catrope
Date:     2011-08-31 12:09:52 +0000 (Wed, 31 Aug 2011)
Log Message:
-----------
Followup r95663: per CR, use the current protocol for expanding the thumbnail 
URL too. I thought I had a good reason for using the canonical protocol, but as 
Brion points out mixing protocols here doesn't make much sense

Modified Paths:
--------------
    trunk/extensions/OpenSearchXml/ApiOpenSearchXml.php

Modified: trunk/extensions/OpenSearchXml/ApiOpenSearchXml.php
===================================================================
--- trunk/extensions/OpenSearchXml/ApiOpenSearchXml.php 2011-08-31 11:39:13 UTC 
(rev 95854)
+++ trunk/extensions/OpenSearchXml/ApiOpenSearchXml.php 2011-08-31 12:09:52 UTC 
(rev 95855)
@@ -126,7 +126,7 @@
                        if( $image ) {
                                $thumb = $image->transform( array( 'width' => 
50, 'height' => 50 ), 0 );
                                $item['Image'] = array(
-                                       'source' => wfExpandUrl( 
$thumb->getUrl(), PROTO_CANONICAL ),
+                                       'source' => wfExpandUrl( 
$thumb->getUrl(), PROTO_CURRENT ),
                                        //alt
                                        'width' => $thumb->getWidth(),
                                        'height' => $thumb->getHeight() );


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to