mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-13 03:48:49 +00:00
[global] CR request: Moved proxify*() methods to separate class
This commit is contained in:
parent
7032e088f7
commit
e269589c65
4 changed files with 11 additions and 11 deletions
|
@ -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'],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue