[global] CR request: Moved proxify*() methods to separate class

This commit is contained in:
Roland Häder 2018-07-28 20:24:16 +02:00
parent 7032e088f7
commit e269589c65
No known key found for this signature in database
GPG key ID: B72F8185C6C7BD78
4 changed files with 11 additions and 11 deletions

View file

@ -17,8 +17,8 @@ use Friendica\Core\Cache;
use Friendica\Core\Config;
use Friendica\Core\L10n;
use Friendica\Core\PConfig;
use Friendica\Module\Proxy;
use Friendica\Util\Network;
use Friendica\Util\ProxyUtils;
function curweather_install()
{
@ -138,7 +138,7 @@ function curweather_network_mod_init(App $a, &$b)
$t = get_markup_template("widget.tpl", "addon/curweather/" );
$curweather = replace_macros ($t, [
'$title' => L10n::t("Current Weather"),
'$icon' => Proxy::proxifyUrl('http://openweathermap.org/img/w/'.$res['icon'].'.png'),
'$icon' => ProxyUtils::proxifyUrl('http://openweathermap.org/img/w/'.$res['icon'].'.png'),
'$city' => $res['city'],
'$lon' => $res['lon'],
'$lat' => $res['lat'],