From 416e8aef53139f381cfc180d58e9fcb128bc46e5 Mon Sep 17 00:00:00 2001 From: Hugues Peccatte Date: Sat, 27 Jul 2019 00:21:12 +0200 Subject: [PATCH] Fix missing variable on insert page Since the use of routes, the context changed because "entrypoints" are not called directly anymore, but are called in closures, so the context is not shared. So if you want to use a global variable that was in the parent context, you now need to explicitely ask for the global variable. In our case, "$is_upload" wasn't shared anymore. Signed-off-by: Hugues Peccatte --- libraries/entry_points/table/change.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/entry_points/table/change.php b/libraries/entry_points/table/change.php index e8edadc7e4..141701fc8e 100644 --- a/libraries/entry_points/table/change.php +++ b/libraries/entry_points/table/change.php @@ -19,7 +19,7 @@ if (! defined('PHPMYADMIN')) { exit; } -global $cfg, $containerBuilder, $db, $table, $text_dir; +global $cfg, $is_upload, $containerBuilder, $db, $table, $text_dir; /** @var Response $response */ $response = $containerBuilder->get(Response::class);