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 /gis_data_editor.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 'gis_data_editor.php')
-rw-r--r--gis_data_editor.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/gis_data_editor.php b/gis_data_editor.php
index 129d6bdff9..0697bd7a28 100644
--- a/gis_data_editor.php
+++ b/gis_data_editor.php
@@ -5,6 +5,7 @@
*
* @package PhpMyAdmin
*/
+use PMA\libraries\Response;
use PMA\libraries\gis\GISFactory;
use PMA\libraries\gis\GISVisualization;
use PMA\libraries\URL;
@@ -101,7 +102,7 @@ if (isset($_REQUEST['generate']) && $_REQUEST['generate'] == true) {
'visualization' => $visualization,
'openLayers' => $open_layers,
);
- $response = PMA\libraries\Response::getInstance();
+ $response = Response::getInstance();
$response->addJSON($extra_data);
exit;
}
@@ -427,5 +428,5 @@ echo '</div>';
echo '</div>';
echo '</form>';
-PMA\libraries\Response::getInstance()->addJSON('gis_editor', ob_get_contents());
+Response::getInstance()->addJSON('gis_editor', ob_get_contents());
ob_end_clean();