#1486 Possibility of disabling database expansion

Signed-off-by: Maxime DAVID <got2bex@gmail.com>
This commit is contained in:
Maxime DAVID 2014-03-25 16:28:28 -04:00
parent d8f31165e4
commit 65bb55450f
2 changed files with 13 additions and 1 deletions

View File

@ -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
*

View File

@ -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'];