]> git.mxchange.org Git - friendica.git/commitdiff
Replace $_SESSION
authorPhilipp <admin@philipp.info>
Tue, 15 Nov 2022 21:52:23 +0000 (22:52 +0100)
committerPhilipp <admin@philipp.info>
Tue, 15 Nov 2022 21:52:23 +0000 (22:52 +0100)
src/Module/Post/Edit.php

index 5531cb249e759bb4adfda57e218e4c715d699688..f89f73f0bde3e8495afe2c50be548c66a3790964 100644 (file)
@@ -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'),