diff options
author | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-11-02 18:20:13 +0000 |
---|---|---|
committer | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-11-02 18:20:13 +0000 |
commit | 3423daa3784995f25b72ebfb1e17d59f745f9354 (patch) | |
tree | 67c91d9979825a40906b432dad40afe860458930 /mod/file | |
parent | 9e4472a987fb626b370f36377f761bde5ba32bdd (diff) | |
download | elgg-3423daa3784995f25b72ebfb1e17d59f745f9354.tar.gz elgg-3423daa3784995f25b72ebfb1e17d59f745f9354.tar.bz2 |
Using REFERER shorthand throughout core
git-svn-id: http://code.elgg.org/elgg/trunk@7193 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/file')
-rw-r--r-- | mod/file/actions/upload.php | 6 |
1 files changed, 3 insertions, 3 deletions
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); } } |