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 /transformation_overview.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 'transformation_overview.php')
-rw-r--r--transformation_overview.php6
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>