diff options
author | Maurício Meneghini Fauth <mauriciofauth@gmail.com> | 2018-04-01 07:34:17 +0300 |
---|---|---|
committer | Maurício Meneghini Fauth <mauriciofauth@gmail.com> | 2018-04-01 07:34:17 +0300 |
commit | c73e72e7ca39304bbcd54399cb59c6fc92199d67 (patch) | |
tree | 39ce656994fa855a8702791654ca0aa2912020c4 /tbl_addfield.php | |
parent | 541924c120b8a52bcf8759443baa56731e470f4f (diff) |
Refactor PhpMyAdmin\Transformations static methods
Replaces static methods with instance methods.
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
Diffstat (limited to 'tbl_addfield.php')
-rw-r--r-- | tbl_addfield.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tbl_addfield.php b/tbl_addfield.php index a0f9a46d58..7e6c6e0c3d 100644 --- a/tbl_addfield.php +++ b/tbl_addfield.php @@ -26,6 +26,8 @@ $scripts->addFile('tbl_structure.js'); // Check parameters Util::checkParameters(array('db', 'table')); +$transformations = new Transformations(); + /** * Defines the url to return to in case of error in a sql statement */ @@ -78,7 +80,7 @@ if (isset($_REQUEST['do_save_data'])) { if (isset($_REQUEST['field_name'][$fieldindex]) && strlen($_REQUEST['field_name'][$fieldindex]) > 0 ) { - Transformations::setMIME( + $transformations->setMime( $db, $table, $_REQUEST['field_name'][$fieldindex], $mimetype, |