aboutsummaryrefslogtreecommitdiff
path: root/mod/file/actions
diff options
context:
space:
mode:
Diffstat (limited to 'mod/file/actions')
-rw-r--r--mod/file/actions/delete.php2
-rw-r--r--mod/file/actions/save.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/mod/file/actions/delete.php b/mod/file/actions/delete.php
index e7ad90289..9357d4955 100644
--- a/mod/file/actions/delete.php
+++ b/mod/file/actions/delete.php
@@ -49,7 +49,7 @@
} else {
- $container = $_SESSION['user'];
+ $container = get_loggedin_user();
register_error(elgg_echo("file:deletefailed"));
}
diff --git a/mod/file/actions/save.php b/mod/file/actions/save.php
index 5e2045ae8..923bc043b 100644
--- a/mod/file/actions/save.php
+++ b/mod/file/actions/save.php
@@ -17,7 +17,7 @@
if (!$file = get_entity($guid)) {
register_error(elgg_echo("file:uploadfailed"));
- forward($CONFIG->wwwroot . "pg/file/" . $_SESSION['user']->username);
+ forward($CONFIG->wwwroot . "pg/file/" . get_loggedin_user()->username);
exit;
}