From ac886e6e14fe659bde73e43946f993f9136e63ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maur=C3=ADcio=20Meneghini=20Fauth?= Date: Sun, 25 Aug 2019 17:20:58 -0300 Subject: [PATCH] Declare globals in some entry points MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: MaurĂ­cio Meneghini Fauth --- libraries/entry_points/preferences/forms.php | 2 +- libraries/entry_points/preferences/manage.php | 3 ++- libraries/entry_points/transformation/wrapper.php | 4 +++- libraries/entry_points/view/create.php | 4 +++- libraries/entry_points/view/operations.php | 3 ++- 5 files changed, 11 insertions(+), 5 deletions(-) diff --git a/libraries/entry_points/preferences/forms.php b/libraries/entry_points/preferences/forms.php index 8f45651adb..0046ca621b 100644 --- a/libraries/entry_points/preferences/forms.php +++ b/libraries/entry_points/preferences/forms.php @@ -22,7 +22,7 @@ if (! defined('PHPMYADMIN')) { exit; } -global $containerBuilder; +global $containerBuilder, $cf, $form_param, $form_class, $form_display, $url_params, $error, $tabHash, $hash; /** @var Template $template */ $template = $containerBuilder->get('template'); diff --git a/libraries/entry_points/preferences/manage.php b/libraries/entry_points/preferences/manage.php index 8eb939e10f..954c9df483 100644 --- a/libraries/entry_points/preferences/manage.php +++ b/libraries/entry_points/preferences/manage.php @@ -23,7 +23,8 @@ if (! defined('PHPMYADMIN')) { exit; } -global $containerBuilder; +global $containerBuilder, $cf, $error, $filename, $import_handle, $json; +global $new_config, $config, $return_url, $form_display, $all_ok, $params, $query; /** @var Template $template */ $template = $containerBuilder->get('template'); diff --git a/libraries/entry_points/transformation/wrapper.php b/libraries/entry_points/transformation/wrapper.php index 8279a0d05d..a39e44f20d 100644 --- a/libraries/entry_points/transformation/wrapper.php +++ b/libraries/entry_points/transformation/wrapper.php @@ -17,7 +17,9 @@ if (! defined('PHPMYADMIN')) { exit; } -global $cn, $containerBuilder, $db, $table, $transform_key; +global $cn, $containerBuilder, $db, $table, $transform_key, $request_params, $size_params, $where_clause, $row; +global $default_ct, $mime_map, $mime_options, $ct, $mime_type, $srcImage, $srcWidth, $srcHeight; +global $ratioWidth, $ratioHeight, $destWidth, $destHeight, $destImage; define('IS_TRANSFORMATION_WRAPPER', true); diff --git a/libraries/entry_points/view/create.php b/libraries/entry_points/view/create.php index 2a4d12b15f..1557d78e63 100644 --- a/libraries/entry_points/view/create.php +++ b/libraries/entry_points/view/create.php @@ -21,7 +21,9 @@ if (! defined('PHPMYADMIN')) { exit; } -global $containerBuilder, $text_dir; +global $containerBuilder, $text_dir, $url_params, $view_algorithm_options, $view_with_options, $view_security_options; +global $message, $sep, $sql_query, $arr, $view_columns, $column_map, $systemDb, $pma_transformation_data; +global $new_transformations_sql, $view, $item, $parts; require ROOT_PATH . 'libraries/db_common.inc.php'; diff --git a/libraries/entry_points/view/operations.php b/libraries/entry_points/view/operations.php index 75b5ad9b7b..9e609ebbe1 100644 --- a/libraries/entry_points/view/operations.php +++ b/libraries/entry_points/view/operations.php @@ -21,7 +21,8 @@ if (! defined('PHPMYADMIN')) { exit; } -global $containerBuilder, $sql_query, $url_query, $url_params; +global $containerBuilder, $sql_query, $url_query, $url_params, $reload, $result, $warning_messages; +global $drop_view_url_params, $db, $table; /** @var Response $response */ $response = $containerBuilder->get(Response::class);