Skip to content

Commit

Permalink
Moved lost global
Browse files Browse the repository at this point in the history
  • Loading branch information
roccivic committed Jun 12, 2012
1 parent 1c01c22 commit 007b10e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 0 additions & 6 deletions libraries/Header.class.php
Expand Up @@ -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
*
Expand Down
4 changes: 4 additions & 0 deletions libraries/common.inc.php
Expand Up @@ -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
Expand Down

0 comments on commit 007b10e

Please sign in to comment.