Move Core\Session::get() to DI::session()->get()

pull/1293/head
Philipp 2022-10-18 21:10:36 +02:00
parent 7c3f602d12
commit 1eb1b10348
No known key found for this signature in database
GPG Key ID: 24A7501396EB5432
2 changed files with 4 additions and 4 deletions

View File

@ -107,7 +107,7 @@ function curweather_network_mod_init(App $a, string &$body)
$rpt = DI::pConfig()->get(local_user(), 'curweather', 'curweather_loc'); $rpt = DI::pConfig()->get(local_user(), 'curweather', 'curweather_loc');
// Set the language to the browsers language or default and use metric units // Set the language to the browsers language or default and use metric units
$lang = Session::get('language', DI::config()->get('system', 'language')); $lang = DI::session()->get('language', DI::config()->get('system', 'language'));
$units = DI::pConfig()->get( local_user(), 'curweather', 'curweather_units'); $units = DI::pConfig()->get( local_user(), 'curweather', 'curweather_units');
$appid = DI::config()->get('curweather', 'appid'); $appid = DI::config()->get('curweather', 'appid');
$cachetime = intval(DI::config()->get('curweather', 'cachetime')); $cachetime = intval(DI::config()->get('curweather', 'cachetime'));

View File

@ -63,10 +63,10 @@ function diaspora_settings(App $a, array &$data)
$info = ''; $info = '';
$error = ''; $error = '';
if (Session::get('my_address')) { if (DI::session()->get('my_address')) {
$info = DI::l10n()->t('Please remember: You can always be reached from Diaspora with your Friendica handle <strong>%s</strong>. ', Session::get('my_address')); $info = DI::l10n()->t('Please remember: You can always be reached from Diaspora with your Friendica handle <strong>%s</strong>. ', DI::session()->get('my_address'));
$info .= DI::l10n()->t('This connector is only meant if you still want to use your old Diaspora account for some time. '); $info .= DI::l10n()->t('This connector is only meant if you still want to use your old Diaspora account for some time. ');
$info .= DI::l10n()->t('However, it is preferred that you tell your Diaspora contacts the new handle <strong>%s</strong> instead.', Session::get('my_address')); $info .= DI::l10n()->t('However, it is preferred that you tell your Diaspora contacts the new handle <strong>%s</strong> instead.', DI::session()->get('my_address'));
} }
$aspect_select = ''; $aspect_select = '';