diff --git a/libraries/Header.class.php b/libraries/Header.class.php index 02f69a981fc1..c7fc7c34fa9b 100644 --- a/libraries/Header.class.php +++ b/libraries/Header.class.php @@ -13,12 +13,6 @@ require_once 'libraries/RecentTable.class.php'; require_once 'libraries/Menu.class.php'; - -// FIXME: this global got lost :( -// here, the function does not exist with this configuration: -// $cfg['ServerDefault'] = 0; -$is_superuser = function_exists('PMA_isSuperuser') && PMA_isSuperuser(); - /** * Class used to output the HTTP and HTML headers * diff --git a/libraries/common.inc.php b/libraries/common.inc.php index d4593423b276..e0eb6e786cd6 100644 --- a/libraries/common.inc.php +++ b/libraries/common.inc.php @@ -1085,6 +1085,10 @@ } unset($dummy); +// here, the function does not exist with this configuration: +// $cfg['ServerDefault'] = 0; +$GLOBALS['is_superuser'] = function_exists('PMA_isSuperuser') && PMA_isSuperuser(); + if (!empty($__redirect) && in_array($__redirect, $goto_whitelist)) { /** * include subform target page