Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaurício Meneghini Fauth <mauriciofauth@gmail.com>2018-04-01 07:34:17 +0300
committerMaurício Meneghini Fauth <mauriciofauth@gmail.com>2018-04-01 07:34:17 +0300
commitc73e72e7ca39304bbcd54399cb59c6fc92199d67 (patch)
tree39ce656994fa855a8702791654ca0aa2912020c4 /tbl_addfield.php
parent541924c120b8a52bcf8759443baa56731e470f4f (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.php4
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,