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:
Diffstat (limited to 'libraries/classes/Plugins/Schema/Eps/Eps.php')
-rw-r--r--libraries/classes/Plugins/Schema/Eps/Eps.php25
1 files changed, 2 insertions, 23 deletions
diff --git a/libraries/classes/Plugins/Schema/Eps/Eps.php b/libraries/classes/Plugins/Schema/Eps/Eps.php
index 4e62f4b6ad..bf45c26e95 100644
--- a/libraries/classes/Plugins/Schema/Eps/Eps.php
+++ b/libraries/classes/Plugins/Schema/Eps/Eps.php
@@ -7,11 +7,6 @@ declare(strict_types=1);
namespace PhpMyAdmin\Plugins\Schema\Eps;
-use PhpMyAdmin\Core;
-use PhpMyAdmin\ResponseRenderer;
-
-use function strlen;
-
/**
* This Class is EPS Library and
* helps in developing structure of EPS Schema Export
@@ -234,24 +229,8 @@ class Eps
$this->stringCommands .= "showpage \n";
}
- /**
- * Output EPS Document for download
- *
- * @param string $fileName name of the eps document
- */
- public function showOutput($fileName): void
+ public function getOutputData(): string
{
- // if(ob_get_clean()){
- //ob_end_clean();
- //}
- $output = $this->stringCommands;
- ResponseRenderer::getInstance()
- ->disable();
- Core::downloadHeader(
- $fileName,
- 'image/x-eps',
- strlen($output)
- );
- print $output;
+ return $this->stringCommands;
}
}