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 /db_designer.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 'db_designer.php')
-rw-r--r--db_designer.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/db_designer.php b/db_designer.php
index 9720a097c2..94395e8821 100644
--- a/db_designer.php
+++ b/db_designer.php
@@ -5,12 +5,13 @@
*
* @package PhpMyAdmin-Designer
*/
+use PMA\libraries\Response;
require_once 'libraries/common.inc.php';
require_once 'libraries/pmd_common.php';
require_once 'libraries/db_designer.lib.php';
-$response = PMA\libraries\Response::getInstance();
+$response = Response::getInstance();
if (isset($_REQUEST['dialog'])) {
@@ -113,7 +114,7 @@ if (isset($_GET['db'])) {
$params['db'] = $_GET['db'];
}
-$response = PMA\libraries\Response::getInstance();
+$response = Response::getInstance();
$response->getFooter()->setMinimal();
$header = $response->getHeader();
$header->setBodyId('pmd_body');