diff options
Diffstat (limited to 'mod/reportedcontent')
-rw-r--r-- | mod/reportedcontent/actions/add.php | 2 | ||||
-rw-r--r-- | mod/reportedcontent/add.php | 2 | ||||
-rw-r--r-- | mod/reportedcontent/views/default/reportedcontent/form.php | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/mod/reportedcontent/actions/add.php b/mod/reportedcontent/actions/add.php index 6e86c4cf6..0611f7402 100644 --- a/mod/reportedcontent/actions/add.php +++ b/mod/reportedcontent/actions/add.php @@ -15,7 +15,7 @@ $report = new ElggObject; $report->subtype = "reported_content"; - $report->owner_guid = $_SESSION['user']->getGUID(); + $report->owner_guid = get_loggedin_userid(); $report->title = $title; $report->address = $address; $report->description = $description; diff --git a/mod/reportedcontent/add.php b/mod/reportedcontent/add.php index fd90e0f5e..9b6032d04 100644 --- a/mod/reportedcontent/add.php +++ b/mod/reportedcontent/add.php @@ -14,7 +14,7 @@ gatekeeper(); // Get the current page's owner $page_owner = page_owner_entity(); if ($page_owner === false || is_null($page_owner)) { - $page_owner = $_SESSION['user']; + $page_owner = get_loggedin_user(); set_page_owner($page_owner->getGUID()); } diff --git a/mod/reportedcontent/views/default/reportedcontent/form.php b/mod/reportedcontent/views/default/reportedcontent/form.php index e21a4408b..fe4287888 100644 --- a/mod/reportedcontent/views/default/reportedcontent/form.php +++ b/mod/reportedcontent/views/default/reportedcontent/form.php @@ -15,7 +15,7 @@ if ($address == "previous") { $tags = array(); $access_id = ACCESS_PRIVATE; $shares = array(); -$owner = $vars['user']; +$owner = get_loggedin_user(); ?> <form action="<?php echo $vars['url']; ?>action/reportedcontent/add" method="post" class="margin_top"> |