]> git.mxchange.org Git - friendica.git/blobdiff - boot.php
old boot.php functions replaced in src/module (4)
[friendica.git] / boot.php
index 60c8bf5a30ebbfdb750d949b40d8bfb6ea066b8a..02579007a6b20670779e4b1876c145168bd01a42 100644 (file)
--- a/boot.php
+++ b/boot.php
  * communications are free and open and flow between alternate providers as
  * easily as email does today.
  */
-
-use Friendica\Core\Session;
-
-/**
- * Returns the user id of locally logged in user or false.
- *
- * @return int|bool user id or false
- * @deprecated since version 2022.12, use Core\Session::getLocalUser() instead
- */
-function local_user()
-{
-       return Session::getLocalUser();
-}
-
-/**
- * Returns the public contact id of logged in user or false.
- *
- * @return int|bool public contact id or false
- * @deprecated since version 2022.12, use Core\Session:: getPublicContact() instead
- */
-function public_contact()
-{
-       return Session::getPublicContact();
-}
-
-/**
- * Returns public contact id of authenticated site visitor or false
- *
- * @return int|bool visitor_id or false
- * @deprecated since version 2022.12, use Core\Session:: getRemoteUser() instead
- */
-function remote_user()
-{
-       return Session::getRemoteUser();
-}