[global]: Proxy class has been introduced, need to fix these as well.
This commit is contained in:
@@ -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'],
|
||||
|
||||
Reference in New Issue
Block a user