Use PROTO_CANONICAL for icon links in emails

We should not be using HTTP links for HTTPS-only sites.

Bug: T104835
Change-Id: I7dadeb29a8c5562c48d5beb2dd33818152c9eb63
This commit is contained in:
Kunal Mehta 2015-07-06 03:08:03 -07:00
parent f1e6fea70c
commit b12efddf30

View file

@ -192,8 +192,7 @@ abstract class EchoEmailMode {
$iconUrl = "$wgExtensionAssetsPath/$path";
}
// Use http for image path, there is no need for https
return wfExpandUrl( $iconUrl, PROTO_HTTP );
return wfExpandUrl( $iconUrl, PROTO_CANONICAL );
}
/**