From a8e625f47a8b197f6cb89b67f37ef5d0a756619d Mon Sep 17 00:00:00 2001 From: Sem Date: Thu, 3 Nov 2011 20:37:47 +0100 Subject: Removed all $CONFIG and pg/ appearitions. --- actions/edit.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'actions/edit.php') 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']); -- cgit v1.2.3