diff options
author | Maurício Meneghini Fauth <mauriciofauth@gmail.com> | 2017-05-31 21:43:24 +0300 |
---|---|---|
committer | Maurício Meneghini Fauth <mauriciofauth@gmail.com> | 2017-05-31 22:36:09 +0300 |
commit | 64b1b79933e1da5c0e848fd2f1bb5f499f35bcfe (patch) | |
tree | 09bd1ef82da4d3e31eb5b224f3dac6b3669145ad /tbl_addfield.php | |
parent | 572c4b7a3d837fe1fcec45e1927ab6849c49558b (diff) |
Refactor the transformations into static methods
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
Diffstat (limited to 'tbl_addfield.php')
-rw-r--r-- | tbl_addfield.php | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/tbl_addfield.php b/tbl_addfield.php index e7e9452058..ac89d87dc9 100644 --- a/tbl_addfield.php +++ b/tbl_addfield.php @@ -5,8 +5,10 @@ * * @package PhpMyAdmin */ -use PMA\libraries\URL; + use PMA\libraries\Response; +use PMA\libraries\Transformations; +use PMA\libraries\URL; /** * Get some core libraries @@ -65,9 +67,6 @@ if (isset($_REQUEST['do_save_data'])) { list($result, $sql_query) = PMA_tryColumnCreationQuery($db, $table, $err_url); if ($result === true) { - // If comments were sent, enable relation stuff - include_once 'libraries/transformations.lib.php'; - // Update comment table for mime types [MIME] if (isset($_REQUEST['field_mimetype']) && is_array($_REQUEST['field_mimetype']) @@ -77,7 +76,7 @@ if (isset($_REQUEST['do_save_data'])) { if (isset($_REQUEST['field_name'][$fieldindex]) && strlen($_REQUEST['field_name'][$fieldindex]) > 0 ) { - PMA_setMIME( + Transformations::setMIME( $db, $table, $_REQUEST['field_name'][$fieldindex], $mimetype, |