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 /transformation_overview.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 'transformation_overview.php')
-rw-r--r-- | transformation_overview.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/transformation_overview.php b/transformation_overview.php index 761e5db811..21d175f260 100644 --- a/transformation_overview.php +++ b/transformation_overview.php @@ -18,7 +18,9 @@ $response = Response::getInstance(); $header = $response->getHeader(); $header->disableMenuAndConsole(); -$types = Transformations::getAvailableMIMEtypes(); +$transformations = new Transformations(); + +$types = $transformations->getAvailableMimeTypes(); ?> <h2><?php echo __('Available MIME types'); ?></h2> @@ -58,7 +60,7 @@ $th = array( <tbody> <?php foreach ($types[$ttype] as $key => $transform) { - $desc = Transformations::getDescription($types[$ttype . '_file'][$key]); + $desc = $transformations->getDescription($types[$ttype . '_file'][$key]); ?> <tr> <td><?php echo htmlspecialchars($transform); ?></td> |