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:
authorMichal Čihař <michal@cihar.com>2016-12-07 20:17:59 +0300
committerMichal Čihař <michal@cihar.com>2016-12-07 20:17:59 +0300
commit308c9d79512d8b8a759e787d11ab1668138d0d5f (patch)
tree92336b7ff438ff6d7b3ffbc5248e7834d56a8663 /normalization.php
parentb56f101039b73866894325b0f6ab13894f0e44b2 (diff)
Simplify Response object handling
- always use use and short name - avoid calling getInstance() several times in one script Signed-off-by: Michal Čihař <michal@cihar.com>
Diffstat (limited to 'normalization.php')
-rw-r--r--normalization.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/normalization.php b/normalization.php
index 4c5dbf615b..b1087bfdc2 100644
--- a/normalization.php
+++ b/normalization.php
@@ -6,6 +6,7 @@
* @package PhpMyAdmin
*/
use PMA\libraries\URL;
+use PMA\libraries\Response;
/**
*
@@ -56,17 +57,18 @@ if (isset($_REQUEST['getNewTables2NF'])) {
exit;
}
+$response = Response::getInstance();
+
if (isset($_REQUEST['getNewTables3NF'])) {
$dependencies = json_decode($_REQUEST['pd']);
$tables = json_decode($_REQUEST['tables']);
$newTables = PMA_getHtmlForNewTables3NF($dependencies, $tables, $db);
- PMA\libraries\Response::getInstance()->disable();
+ $response->disable();
PMA_headerJSON();
echo json_encode($newTables);
exit;
}
-$response = PMA\libraries\Response::getInstance();
$header = $response->getHeader();
$scripts = $header->getScripts();
$scripts->addFile('normalization.js');