X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=boot.php;h=2ceafea7822befa96f2f6e65c7822ae862fcd4fa;hb=2d4598a4db7f58f1b86ace064918cc13d7f2617c;hp=2756a594782ea0f6e5ca8714443ed32f05ce0454;hpb=42d411712bd7ab2e9c67729d81e0e65cd7659fad;p=friendica.git diff --git a/boot.php b/boot.php index 2756a59478..2ceafea782 100644 --- a/boot.php +++ b/boot.php @@ -31,7 +31,7 @@ use Friendica\Model\Contact; define('FRIENDICA_PLATFORM', 'Friendica'); define('FRIENDICA_CODENAME', 'Giant Rhubarb'); -define('FRIENDICA_VERSION', '2022.09-dev'); +define('FRIENDICA_VERSION', '2022.09-rc'); define('DFRN_PROTOCOL_VERSION', '2.23'); define('NEW_TABLE_STRUCTURE_VERSION', 1288); @@ -171,18 +171,11 @@ function remote_user() * @param string $s - Text of notice * * @return void + * @deprecated since version 2022.09, use \Friendica\Navigation\SystemMessages instead */ function notice(string $s) { - if (empty($_SESSION)) { - return; - } - - if (empty($_SESSION['sysmsg'])) { - $_SESSION['sysmsg'] = []; - } - - $_SESSION['sysmsg'][] = $s; + \Friendica\DI::sysmsg()->addNotice($s); } /** @@ -193,16 +186,9 @@ function notice(string $s) * @param string $s - Text of notice * * @return void + * @deprecated since version 2022.09, use \Friendica\Navigation\SystemMessages instead */ 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); }