From 3423daa3784995f25b72ebfb1e17d59f745f9354 Mon Sep 17 00:00:00 2001 From: ewinslow Date: Tue, 2 Nov 2010 18:20:13 +0000 Subject: Using REFERER shorthand throughout core git-svn-id: http://code.elgg.org/elgg/trunk@7193 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/file/actions/upload.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'mod/file/actions') diff --git a/mod/file/actions/upload.php b/mod/file/actions/upload.php index 82744730c..6af52c701 100644 --- a/mod/file/actions/upload.php +++ b/mod/file/actions/upload.php @@ -47,7 +47,7 @@ exit; } else { register_error($error); - forward($_SERVER['HTTP_REFERER']); + forward(REFERER); } } @@ -64,13 +64,13 @@ $file = get_entity($guid); if (!$file) { register_error(elgg_echo('file:cannotload')); - forward($_SERVER['HTTP_REFERER']); + forward(REFERER); } // user must be able to edit file if (!$file->canEdit()) { register_error(elgg_echo('file:noaccess')); - forward($_SERVER['HTTP_REFERER']); + forward(REFERER); } } -- cgit v1.2.3