aboutsummaryrefslogtreecommitdiff
path: root/actions/edit.php
diff options
context:
space:
mode:
authorSem <sembrestels@riseup.net>2011-11-03 20:37:47 +0100
committerSem <sembrestels@riseup.net>2011-11-03 20:37:47 +0100
commita8e625f47a8b197f6cb89b67f37ef5d0a756619d (patch)
tree1f1df7f065d8c2961d33eb58d2ff484d5dfe4108 /actions/edit.php
parentde84bf42063eae58bd5832d125c6445b5315baaf (diff)
downloadelgg-a8e625f47a8b197f6cb89b67f37ef5d0a756619d.tar.gz
elgg-a8e625f47a8b197f6cb89b67f37ef5d0a756619d.tar.bz2
Removed all $CONFIG and pg/ appearitions.
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']);