diff --git a/db_qbe.php b/db_qbe.php index 20784ff6ee..54ace5a035 100644 --- a/db_qbe.php +++ b/db_qbe.php @@ -23,7 +23,7 @@ if (! defined('ROOT_PATH')) { define('ROOT_PATH', __DIR__ . DIRECTORY_SEPARATOR); } -global $db; +global $db, $pmaThemeImage; require_once ROOT_PATH . 'libraries/common.inc.php'; diff --git a/db_tracking.php b/db_tracking.php index fab53e592a..dd2220834f 100644 --- a/db_tracking.php +++ b/db_tracking.php @@ -19,7 +19,7 @@ if (! defined('ROOT_PATH')) { define('ROOT_PATH', __DIR__ . DIRECTORY_SEPARATOR); } -global $db; +global $db, $pmaThemeImage; require_once ROOT_PATH . 'libraries/common.inc.php'; diff --git a/import.php b/import.php index 30cf739528..5cc17b3e7a 100644 --- a/import.php +++ b/import.php @@ -31,7 +31,7 @@ if (isset($_POST['format']) && $_POST['format'] == 'ldi') { define('PMA_ENABLE_LDI', 1); } -global $db, $table; +global $db, $pmaThemeImage, $table; require_once ROOT_PATH . 'libraries/common.inc.php'; diff --git a/phpstan.neon.dist b/phpstan.neon.dist index a01cf367cb..79f1e5e614 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -15,7 +15,7 @@ parameters: - '#Access to an undefined property PhpMyAdmin\\TwoFactor\:\:\$(backend|showSubmit|available|writable)#' - '#Call to an undefined method PhpMyAdmin\\Navigation\\Nodes\\Node\:\:getHiddenCount#' - '#Undefined variable: \$array#' - - '#Undefined variable: \$(url_query|text_dir|server|pmaThemeImage|action|sql_query|lang|export_type|err_url|collation_connection|filename_template|transform_key|cn|goto|partitionDetails|token_mismatch|auth_plugin|username|hostname|display_query|where_clause)#'#Others + - '#Undefined variable: \$(url_query|text_dir|server|action|sql_query|lang|export_type|err_url|collation_connection|filename_template|transform_key|cn|goto|partitionDetails|token_mismatch|auth_plugin|username|hostname|display_query|where_clause)#'#Others - '#Undefined variable: \$(unsaved_values|is_upload)#'#tbl_change.php - '#Undefined variable: \$max_upload_size#'#tbl_import.php - '#Undefined variable: \$(repobase|fullrevision|revision|repobranchbase|branch)#'#Footer.php diff --git a/server_privileges.php b/server_privileges.php index 5f9c06c92a..8e6faf7571 100644 --- a/server_privileges.php +++ b/server_privileges.php @@ -23,7 +23,7 @@ if (! defined('ROOT_PATH')) { define('ROOT_PATH', __DIR__ . DIRECTORY_SEPARATOR); } -global $db; +global $db, $pmaThemeImage; require_once ROOT_PATH . 'libraries/common.inc.php'; diff --git a/sql.php b/sql.php index 68e495cf8b..3080ac71a0 100644 --- a/sql.php +++ b/sql.php @@ -23,7 +23,7 @@ if (! defined('ROOT_PATH')) { define('ROOT_PATH', __DIR__ . DIRECTORY_SEPARATOR); } -global $cfg; +global $cfg, $pmaThemeImage; require_once ROOT_PATH . 'libraries/common.inc.php'; diff --git a/tbl_row_action.php b/tbl_row_action.php index 734e3ab1e4..62fe6fa74e 100644 --- a/tbl_row_action.php +++ b/tbl_row_action.php @@ -15,7 +15,7 @@ if (! defined('ROOT_PATH')) { define('ROOT_PATH', __DIR__ . DIRECTORY_SEPARATOR); } -global $db, $table; +global $db, $pmaThemeImage, $table; require_once ROOT_PATH . 'libraries/common.inc.php'; diff --git a/tbl_tracking.php b/tbl_tracking.php index ed23b881a4..02aaccae89 100644 --- a/tbl_tracking.php +++ b/tbl_tracking.php @@ -16,6 +16,8 @@ if (! defined('ROOT_PATH')) { define('ROOT_PATH', __DIR__ . DIRECTORY_SEPARATOR); } +global $pmaThemeImage; + require_once ROOT_PATH . 'libraries/common.inc.php'; //Get some js files needed for Ajax requests