Declare globals in gis_data_editor and home

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
This commit is contained in:
Maurício Meneghini Fauth 2019-08-24 15:26:05 -03:00
parent c86e40a8dc
commit 4dc459bab4
2 changed files with 5 additions and 4 deletions

View File

@ -18,7 +18,8 @@ if (! defined('PHPMYADMIN')) {
exit;
}
global $containerBuilder;
global $containerBuilder, $gis_data, $gis_types, $start, $geom_type, $gis_obj, $srid, $wkt, $wkt_with_zero;
global $result, $visualizationSettings, $data, $visualization, $open_layers, $geom_count;
/** @var Template $template */
$template = $containerBuilder->get('template');

View File

@ -16,7 +16,7 @@ if (! defined('PHPMYADMIN')) {
exit;
}
global $containerBuilder, $server;
global $containerBuilder, $server, $show_query, $db, $table;
/** @var Response $response */
$response = $containerBuilder->get(Response::class);
@ -67,8 +67,8 @@ if (isset($_POST['set_theme'])) {
$response->addHTML($controller->gitRevision());
} else {
// Handles some variables that may have been sent by the calling script
$GLOBALS['db'] = '';
$GLOBALS['table'] = '';
$db = '';
$table = '';
$show_query = '1';
if ($server > 0) {