aboutsummaryrefslogtreecommitdiff
path: root/actions/edit.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/edit.php')
-rw-r--r--actions/edit.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/actions/edit.php b/actions/edit.php
index 46df32e16..3aa536e4c 100644
--- a/actions/edit.php
+++ b/actions/edit.php
@@ -2,8 +2,6 @@
/**
* Elgg video edit
*/
-
-global $CONFIG;
// Get variables
$title = strip_tags(get_input("title_videourl"));
@@ -14,7 +12,7 @@ $guid = (int) get_input('video_guid');
if (!$video = get_entity($guid)) {
register_error(elgg_echo("videolist:noentity"));
- forward($CONFIG->wwwroot . "pg/videolist/" . $_SESSION['user']->username);
+ forward(elgg_get_site_url() . "videolist/" . $_SESSION['user']->username);
exit;
}
@@ -39,4 +37,4 @@ if ($result)
else
register_error(elgg_echo("videolist:editfailed"));
-forward($_SERVER['HTTP_REFERER']); \ No newline at end of file
+forward($_SERVER['HTTP_REFERER']);