1
0
mirror of https://github.com/phpmyadmin/phpmyadmin.git synced 2026-10-28 07:41:55 +03:00

Respect ['ShowCreateDb'] in the navi panel

Signed-off-by: Marc Delisle <marc@infomarc.info>
This commit is contained in:
Petr Tomášek
2014-05-16 12:35:28 -04:00
committed by Marc Delisle
parent e2817dfdfd
commit 99dca5d7a6

View File

@@ -29,7 +29,9 @@ class Node_Database_Container extends Node
{
parent::__construct($name, Node::CONTAINER);
if ($GLOBALS['is_create_db_priv']) {
if ($GLOBALS['is_create_db_priv']
&& $GLOBALS['cfg']['ShowCreateDb'] !== false
) {
$new = PMA_NodeFactory::getInstance(
'Node', _pgettext('Create new database', 'New')
);