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 /actions/admin | |
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 'actions/admin')
-rw-r--r-- | actions/admin/menu_items.php | 2 | ||||
-rw-r--r-- | actions/admin/plugins/disable.php | 2 | ||||
-rw-r--r-- | actions/admin/plugins/disableall.php | 2 | ||||
-rw-r--r-- | actions/admin/plugins/enable.php | 2 | ||||
-rw-r--r-- | actions/admin/plugins/enableall.php | 2 | ||||
-rw-r--r-- | actions/admin/plugins/reorder.php | 2 | ||||
-rw-r--r-- | actions/admin/plugins/simple_update_states.php | 2 | ||||
-rw-r--r-- | actions/admin/site/update_advanced.php | 2 | ||||
-rw-r--r-- | actions/admin/site/update_basic.php | 2 | ||||
-rw-r--r-- | actions/admin/user/makeadmin.php | 2 | ||||
-rw-r--r-- | actions/admin/user/removeadmin.php | 2 | ||||
-rw-r--r-- | actions/admin/user/resetpassword.php | 2 | ||||
-rw-r--r-- | actions/admin/user/unban.php | 2 |
13 files changed, 13 insertions, 13 deletions
diff --git a/actions/admin/menu_items.php b/actions/admin/menu_items.php index 8b01ae8fe..c9efb8bee 100644 --- a/actions/admin/menu_items.php +++ b/actions/admin/menu_items.php @@ -47,4 +47,4 @@ set_config('menu_items_custom_items', $custom_items); system_message(elgg_echo('admin:menu_items:saved')); -forward($_SERVER['HTTP_REFERER']); +forward(REFERER); diff --git a/actions/admin/plugins/disable.php b/actions/admin/plugins/disable.php index 5ad49d2c7..48116e43a 100644 --- a/actions/admin/plugins/disable.php +++ b/actions/admin/plugins/disable.php @@ -32,4 +32,4 @@ foreach ($plugin as $p) { elgg_invalidate_simplecache(); elgg_filepath_cache_reset(); -forward($_SERVER['HTTP_REFERER']); +forward(REFERER); diff --git a/actions/admin/plugins/disableall.php b/actions/admin/plugins/disableall.php index f2545fb0e..bd68c17b1 100644 --- a/actions/admin/plugins/disableall.php +++ b/actions/admin/plugins/disableall.php @@ -27,4 +27,4 @@ foreach ($plugins as $p => $data) { elgg_invalidate_simplecache(); elgg_filepath_cache_reset(); -forward($_SERVER['HTTP_REFERER']); +forward(REFERER); diff --git a/actions/admin/plugins/enable.php b/actions/admin/plugins/enable.php index 92ccd185b..b15666093 100644 --- a/actions/admin/plugins/enable.php +++ b/actions/admin/plugins/enable.php @@ -33,4 +33,4 @@ foreach ($plugin as $p) { elgg_invalidate_simplecache(); elgg_filepath_cache_reset(); -forward($_SERVER['HTTP_REFERER']);
\ No newline at end of file +forward(REFERER);
\ No newline at end of file diff --git a/actions/admin/plugins/enableall.php b/actions/admin/plugins/enableall.php index 5a85b6e07..b959c235f 100644 --- a/actions/admin/plugins/enableall.php +++ b/actions/admin/plugins/enableall.php @@ -27,4 +27,4 @@ foreach ($plugins as $p => $data) { elgg_invalidate_simplecache(); elgg_filepath_cache_reset(); -forward($_SERVER['HTTP_REFERER']);
\ No newline at end of file +forward(REFERER);
\ No newline at end of file diff --git a/actions/admin/plugins/reorder.php b/actions/admin/plugins/reorder.php index 165495050..e3c65f6e5 100644 --- a/actions/admin/plugins/reorder.php +++ b/actions/admin/plugins/reorder.php @@ -50,4 +50,4 @@ if (regenerate_plugin_list($plugins)) { elgg_invalidate_simplecache(); elgg_filepath_cache_reset(); -forward($_SERVER['HTTP_REFERER']);
\ No newline at end of file +forward(REFERER);
\ No newline at end of file diff --git a/actions/admin/plugins/simple_update_states.php b/actions/admin/plugins/simple_update_states.php index a81cb6a7a..7d01e4a46 100644 --- a/actions/admin/plugins/simple_update_states.php +++ b/actions/admin/plugins/simple_update_states.php @@ -50,4 +50,4 @@ if ($success) { elgg_invalidate_simplecache(); elgg_filepath_cache_reset(); -forward($_SERVER['HTTP_REFERER']);
\ No newline at end of file +forward(REFERER);
\ No newline at end of file diff --git a/actions/admin/site/update_advanced.php b/actions/admin/site/update_advanced.php index 10a186bd1..127fd38b6 100644 --- a/actions/admin/site/update_advanced.php +++ b/actions/admin/site/update_advanced.php @@ -82,5 +82,5 @@ if (datalist_get('default_site')) { register_error(elgg_echo("admin:configuration:fail")); } - forward($_SERVER['HTTP_REFERER']); + forward(REFERER); }
\ No newline at end of file diff --git a/actions/admin/site/update_basic.php b/actions/admin/site/update_basic.php index dd3e08301..94882cfd3 100644 --- a/actions/admin/site/update_basic.php +++ b/actions/admin/site/update_basic.php @@ -26,4 +26,4 @@ if (datalist_get('default_site')) { set_config('language', get_input('language'), $site->getGUID()); } -forward($_SERVER['HTTP_REFERER']);
\ No newline at end of file +forward(REFERER);
\ No newline at end of file diff --git a/actions/admin/user/makeadmin.php b/actions/admin/user/makeadmin.php index f8a426a41..19f365d62 100644 --- a/actions/admin/user/makeadmin.php +++ b/actions/admin/user/makeadmin.php @@ -26,4 +26,4 @@ if (($user instanceof ElggUser) && ($user->canEdit())) { register_error(elgg_echo('admin:user:makeadmin:no')); } -forward($_SERVER['HTTP_REFERER']); +forward(REFERER); diff --git a/actions/admin/user/removeadmin.php b/actions/admin/user/removeadmin.php index 9e8c55ac9..468670940 100644 --- a/actions/admin/user/removeadmin.php +++ b/actions/admin/user/removeadmin.php @@ -21,4 +21,4 @@ if (($user instanceof ElggUser) && ($user->canEdit())) { register_error(elgg_echo('admin:user:removeadmin:no')); } -forward($_SERVER['HTTP_REFERER']); +forward(REFERER); diff --git a/actions/admin/user/resetpassword.php b/actions/admin/user/resetpassword.php index c70410201..46a983c86 100644 --- a/actions/admin/user/resetpassword.php +++ b/actions/admin/user/resetpassword.php @@ -42,4 +42,4 @@ if (($obj instanceof ElggUser) && ($obj->canEdit())) { register_error(elgg_echo('admin:user:resetpassword:no')); } -forward($_SERVER['HTTP_REFERER']);
\ No newline at end of file +forward(REFERER);
\ No newline at end of file diff --git a/actions/admin/user/unban.php b/actions/admin/user/unban.php index 2bc609b5c..66173623a 100644 --- a/actions/admin/user/unban.php +++ b/actions/admin/user/unban.php @@ -26,4 +26,4 @@ if (($obj instanceof ElggUser) && ($obj->canEdit())) { access_show_hidden_entities($access_status); -forward($_SERVER['HTTP_REFERER']); +forward(REFERER); |