aboutsummaryrefslogtreecommitdiff
path: root/mod/file/actions
diff options
context:
space:
mode:
Diffstat (limited to 'mod/file/actions')
-rw-r--r--mod/file/actions/save.php4
-rw-r--r--mod/file/actions/upload.php2
2 files changed, 3 insertions, 3 deletions
diff --git a/mod/file/actions/save.php b/mod/file/actions/save.php
index 923bc043b..17a9b16fb 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/" . get_loggedin_user()->username);
+ forward(elgg_get_site_url() . "pg/file/" . get_loggedin_user()->username);
exit;
}
@@ -44,5 +44,5 @@
else
register_error(elgg_echo("file:uploadfailed"));
- forward($CONFIG->wwwroot . "pg/file/" . $container->username);
+ forward(elgg_get_site_url() . "pg/file/" . $container->username);
?> \ No newline at end of file
diff --git a/mod/file/actions/upload.php b/mod/file/actions/upload.php
index 367488d7c..82744730c 100644
--- a/mod/file/actions/upload.php
+++ b/mod/file/actions/upload.php
@@ -193,7 +193,7 @@
if (!$ajax) {
$container_user = get_entity($container_guid);
- forward($CONFIG->wwwroot . "pg/file/" . $container_user->username);
+ forward(elgg_get_site_url() . "pg/file/" . $container_user->username);
}
} else {