]> git.mxchange.org Git - friendica.git/blobdiff - boot.php
Quoted posts from Twitter now contain media again
[friendica.git] / boot.php
index c759bb93d25f1880f77ac2d82504962b5cb87882..2ceafea7822befa96f2f6e65c7822ae862fcd4fa 100644 (file)
--- 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);
 
@@ -169,18 +169,13 @@ function remote_user()
  * 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 notice(string $s)
 {
-       if (empty($_SESSION)) {
-               return;
-       }
-
-       if (empty($_SESSION['sysmsg'])) {
-               $_SESSION['sysmsg'] = [];
-       }
-
-       $_SESSION['sysmsg'][] = $s;
+       \Friendica\DI::sysmsg()->addNotice($s);
 }
 
 /**
@@ -189,16 +184,11 @@ function notice(string $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(string $s)
 {
-       if (empty($_SESSION)) {
-               return;
-       }
-
-       if (empty($_SESSION['sysmsg_info'])) {
-               $_SESSION['sysmsg_info'] = [];
-       }
-
-       $_SESSION['sysmsg_info'][] = $s;
+       \Friendica\DI::sysmsg()->addInfo($s);
 }