From: Philipp Date: Tue, 15 Nov 2022 21:52:23 +0000 (+0100) Subject: Replace $_SESSION X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=09e01b93564bb80822af4acad7eecdfa280d1caf;p=friendica.git Replace $_SESSION --- diff --git a/src/Module/Post/Edit.php b/src/Module/Post/Edit.php index 5531cb249e..f89f73f0bd 100644 --- a/src/Module/Post/Edit.php +++ b/src/Module/Post/Edit.php @@ -159,7 +159,7 @@ class Edit extends BaseModule '$lockstate' => $lockstate, '$acl' => '', // populate_acl((($group) ? $group_acl : $a->user)), '$bang' => ($lockstate === 'lock' ? '!' : ''), - '$profile_uid' => $_SESSION['uid'], + '$profile_uid' => $this->session->getLocalUserId(), '$preview' => $this->t('Preview'), '$jotplugins' => $jotplugins, '$cancel' => $this->t('Cancel'),