]> git.mxchange.org Git - friendica.git/blobdiff - boot.php
Handle changed parents
[friendica.git] / boot.php
index 077557f8f5d2e757320cda809c9cb3151819a012..2756a594782ea0f6e5ca8714443ed32f05ce0454 100644 (file)
--- a/boot.php
+++ b/boot.php
@@ -30,8 +30,8 @@
 use Friendica\Model\Contact;
 
 define('FRIENDICA_PLATFORM',     'Friendica');
-define('FRIENDICA_CODENAME',     'Siberian Iris');
-define('FRIENDICA_VERSION',      '2022.05-rc');
+define('FRIENDICA_CODENAME',     'Giant Rhubarb');
+define('FRIENDICA_VERSION',      '2022.09-dev');
 define('DFRN_PROTOCOL_VERSION',  '2.23');
 define('NEW_TABLE_STRUCTURE_VERSION', 1288);
 
@@ -87,8 +87,8 @@ define('PRIORITIES', [PRIORITY_CRITICAL, PRIORITY_HIGH, PRIORITY_MEDIUM, PRIORIT
 /* @}*/
 
 // Normally this constant is defined - but not if "pcntl" isn't installed
-if (!defined("SIGTERM")) {
-       define("SIGTERM", 15);
+if (!defined('SIGTERM')) {
+       define('SIGTERM', 15);
 }
 
 /**
@@ -117,6 +117,7 @@ function local_user()
        if (!empty($_SESSION['authenticated']) && !empty($_SESSION['uid'])) {
                return intval($_SESSION['uid']);
        }
+
        return false;
 }
 
@@ -168,8 +169,10 @@ 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
  */
-function notice($s)
+function notice(string $s)
 {
        if (empty($_SESSION)) {
                return;
@@ -188,8 +191,10 @@ 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
  */
-function info($s)
+function info(string $s)
 {
        if (empty($_SESSION)) {
                return;