X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=boot.php;h=ea4f28b74174e9611891af4376a04ef0799ebdb4;hb=5ece6dcf41201c6c73dbb2269b2261a93048cc33;hp=d291220ce8be19c4cc40c9a221d486acd992fbc9;hpb=0e2e488521fbcf2d52dc8037ee6e9dd577fbf14c;p=friendica.git diff --git a/boot.php b/boot.php index d291220ce8..ea4f28b741 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); }