1
0
Fork 0

old boot.php functions replaced in src/module (4)

This commit is contained in:
Michael 2022-10-19 04:43:47 +00:00 committed by Hypolite Petovan
commit d47d78f2d4
22 changed files with 140 additions and 158 deletions

View file

@ -22,6 +22,7 @@
namespace Friendica\Module\Search;
use Friendica\Content\Widget;
use Friendica\Core\Session;
use Friendica\DI;
use Friendica\Module\BaseSearch;
use Friendica\Module\Security\Login;
@ -33,7 +34,7 @@ class Directory extends BaseSearch
{
protected function content(array $request = []): string
{
if (!local_user()) {
if (!Session::getLocalUser()) {
DI::sysmsg()->addNotice(DI::l10n()->t('Permission denied.'));
return Login::form();
}