mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-13 11:58:48 +00:00
[global]: Proxy class has been introduced, need to fix these as well.
This commit is contained in:
parent
fc2a367dae
commit
265a2c498e
4 changed files with 12 additions and 12 deletions
|
@ -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'],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue