#1486 Possibility of disabling database expansion
Signed-off-by: Maxime DAVID <got2bex@gmail.com>
This commit is contained in:
parent
d8f31165e4
commit
65bb55450f
@ -650,6 +650,13 @@ $cfg['MaxDbList'] = 100;
|
||||
*/
|
||||
$cfg['MaxTableList'] = 250;
|
||||
|
||||
/**
|
||||
* Disables the possibility of database expansion
|
||||
*
|
||||
* @global boolean $cfg['DisableDatabaseExpansion']
|
||||
*/
|
||||
$cfg['DisableDatabaseExpansion'] = false;
|
||||
|
||||
/**
|
||||
* whether to show hint or not
|
||||
*
|
||||
|
||||
@ -874,7 +874,12 @@ class PMA_NavigationTree
|
||||
}
|
||||
}
|
||||
|
||||
$retval .= "<a class='expander$loaded$container'";
|
||||
if(!$GLOBALS['cfg']['DisableDatabaseExpansion'])
|
||||
$retval .= "<a class='expander$loaded$container'";
|
||||
else {
|
||||
$retval .= "<a";
|
||||
$icon = "";
|
||||
}
|
||||
$retval .= " href='#'>";
|
||||
$retval .= "<span class='hide aPath'>";
|
||||
$retval .= $paths['aPath'];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user