]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Bookmarklet.php
Merge pull request #12638 from annando/collapse
[friendica.git] / src / Module / Bookmarklet.php
index b5306cca0cf3d662dd874d9b4c35f0a2b989cb6b..d915fbf69edc758640cec79316c8a852075865f1 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2021, the Friendica project
+ * @copyright Copyright (C) 2010-2023, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -40,7 +40,7 @@ class Bookmarklet extends BaseModule
 
                $config = DI::config();
 
-               if (!local_user()) {
+               if (!DI::userSession()->getLocalUserId()) {
                        $output = '<h2>' . DI::l10n()->t('Login') . '</h2>';
                        $output .= Login::form(DI::args()->getQueryString(), intval($config->get('config', 'register_policy')) === Register::CLOSED ? false : true);
                        return $output;