mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-11 19:08:49 +00:00
[various] Replace deprecated defaults() calls by ?? operator
This commit is contained in:
parent
ce7b5ff6ac
commit
acdd62da3e
12 changed files with 27 additions and 26 deletions
|
@ -16,6 +16,7 @@ use Friendica\Core\Hook;
|
|||
use Friendica\Core\L10n;
|
||||
use Friendica\Core\PConfig;
|
||||
use Friendica\Core\Renderer;
|
||||
use Friendica\Core\Session;
|
||||
use Friendica\Util\Network;
|
||||
use Friendica\Util\Proxy as ProxyUtils;
|
||||
|
||||
|
@ -116,7 +117,7 @@ function curweather_network_mod_init(App $a, &$b)
|
|||
$rpt = PConfig::get(local_user(), 'curweather', 'curweather_loc');
|
||||
|
||||
// Set the language to the browsers language or default and use metric units
|
||||
$lang = defaults($_SESSION, 'language', Config::get('system', 'language'));
|
||||
$lang = Session::get('language', Config::get('system', 'language'));
|
||||
$units = PConfig::get( local_user(), 'curweather', 'curweather_units');
|
||||
$appid = Config::get('curweather', 'appid');
|
||||
$cachetime = intval(Config::get('curweather', 'cachetime'));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue