Declare globals in gis_data_editor and home
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
This commit is contained in:
parent
c86e40a8dc
commit
4dc459bab4
@ -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');
|
||||
|
||||
@ -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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user