From 1eb1b1034812f7d656f1337e89536c37e2f26490 Mon Sep 17 00:00:00 2001 From: Philipp Date: Tue, 18 Oct 2022 21:10:36 +0200 Subject: [PATCH] Move Core\Session::get() to DI::session()->get() --- curweather/curweather.php | 2 +- diaspora/diaspora.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/curweather/curweather.php b/curweather/curweather.php index 27d6f940..4e92cc09 100644 --- a/curweather/curweather.php +++ b/curweather/curweather.php @@ -107,7 +107,7 @@ function curweather_network_mod_init(App $a, string &$body) $rpt = DI::pConfig()->get(local_user(), 'curweather', 'curweather_loc'); // 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'); $appid = DI::config()->get('curweather', 'appid'); $cachetime = intval(DI::config()->get('curweather', 'cachetime')); diff --git a/diaspora/diaspora.php b/diaspora/diaspora.php index fc29fdc6..8ede995c 100644 --- a/diaspora/diaspora.php +++ b/diaspora/diaspora.php @@ -63,10 +63,10 @@ function diaspora_settings(App $a, array &$data) $info = ''; $error = ''; - if (Session::get('my_address')) { - $info = DI::l10n()->t('Please remember: You can always be reached from Diaspora with your Friendica handle %s. ', 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 %s. ', 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('However, it is preferred that you tell your Diaspora contacts the new handle %s instead.', Session::get('my_address')); + $info .= DI::l10n()->t('However, it is preferred that you tell your Diaspora contacts the new handle %s instead.', DI::session()->get('my_address')); } $aspect_select = ''; -- 2.39.5