From 1215f3ac8870f39020e52016986544294acdd66e Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Thu, 15 Mar 2012 12:38:28 -0400 Subject: [PATCH] No longer depend on grab_globals --- transformation_wrapper.php | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/transformation_wrapper.php b/transformation_wrapper.php index 0b87b43c25..138235f135 100644 --- a/transformation_wrapper.php +++ b/transformation_wrapper.php @@ -23,6 +23,26 @@ $cfgRelation = PMA_getRelationsParam(); require_once './libraries/db_table_exists.lib.php'; +/** + * Sets globals from $_REQUEST + */ +$request_params = array( + 'cn', + 'ct', + 'newHeight', + 'newWidth', + 'resize', + 'sql_query', + 'transform_key', + 'where_clause' +); +foreach ($request_params as $one_request_param) { + if (isset($_REQUEST[$one_request_param])) { + $GLOBALS[$one_request_param] = $_REQUEST[$one_request_param]; + } +} + + /** * Get the list of the fields of the current table */