X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=boot.php;h=2ceafea7822befa96f2f6e65c7822ae862fcd4fa;hb=2d4598a4db7f58f1b86ace064918cc13d7f2617c;hp=a185a6b5094dc5dd66ff6ffccdf732e5e57e38b9;hpb=8d5c03755d8b9d73d8c30517b1ee9c3cd330c158;p=friendica.git diff --git a/boot.php b/boot.php index a185a6b509..2ceafea782 100644 --- a/boot.php +++ b/boot.php @@ -1,6 +1,6 @@ addNotice($s); } /** @@ -188,16 +184,11 @@ function notice($s) * This function save text in session, to be shown to the user at next page load * * @param string $s - Text of notice + * + * @return void + * @deprecated since version 2022.09, use \Friendica\Navigation\SystemMessages instead */ -function info($s) +function info(string $s) { - if (empty($_SESSION)) { - return; - } - - if (empty($_SESSION['sysmsg_info'])) { - $_SESSION['sysmsg_info'] = []; - } - - $_SESSION['sysmsg_info'][] = $s; + \Friendica\DI::sysmsg()->addInfo($s); }