]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Search/Directory.php
The GNU-Social import is removed
[friendica.git] / src / Module / Search / Directory.php
index ca57b3251d5644ee1a06de3ba2ecf992d4084b8a..7eb11118c638a4ac598a9a5c4ee5307ed8baa7ca 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2021, the Friendica project
+ * @copyright Copyright (C) 2010-2022, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -33,8 +33,8 @@ class Directory extends BaseSearch
 {
        protected function content(array $request = []): string
        {
-               if (!local_user()) {
-                       notice(DI::l10n()->t('Permission denied.'));
+               if (!DI::userSession()->getLocalUserId()) {
+                       DI::sysmsg()->addNotice(DI::l10n()->t('Permission denied.'));
                        return Login::form();
                }