[global]: Proxy class has been introduced, need to fix these as well.

This commit is contained in:
Roland Häder 2018-07-27 02:08:03 +02:00
parent fc2a367dae
commit 265a2c498e
No known key found for this signature in database
GPG key ID: B72F8185C6C7BD78
4 changed files with 12 additions and 12 deletions

View file

@ -9,7 +9,6 @@
*
*/
require_once 'mod/proxy.php';
require_once 'include/text.php';
use Friendica\App;
@ -18,6 +17,7 @@ use Friendica\Core\Cache;
use Friendica\Core\Config;
use Friendica\Core\L10n;
use Friendica\Core\PConfig;
use Friendica\Network\Proxy;
use Friendica\Util\Network;
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_url('http://openweathermap.org/img/w/'.$res['icon'].'.png'),
'$icon' => Proxy::proxifyUrl('http://openweathermap.org/img/w/'.$res['icon'].'.png'),
'$city' => $res['city'],
'$lon' => $res['lon'],
'$lat' => $res['lat'],