remove http: from Icon URL
getriebesand opened this issue · 1 comments
getriebesand commented
please remove http: from URL for use in https sites.
and make $iconUrl protected so it can be modified to customer needs (own icons)
protected $iconUrl = "//openweathermap.org/img/w/%s.png";
cmfcmf commented
Hey @getriebesand,
I've now removed http:
from the icon urls and updated the weather class to include a setter to change the icon url template globally:
\Cmfcmf\OpenWeatherMap\Util\Weather::setIconUrlTemplate('//myicons.mysite.com/icon/%s');
/* ... */
$owm = new \Cmfcmf\OpenWeatherMap('...');
/* ... */