From 99dca5d7a6e4e9a9037013ff7443a3e75e2fb02e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Tom=C3=A1=C5=A1ek?= Date: Fri, 16 May 2014 12:35:28 -0400 Subject: [PATCH] Respect ['ShowCreateDb'] in the navi panel Signed-off-by: Marc Delisle --- libraries/navigation/Nodes/Node_Database_Container.class.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libraries/navigation/Nodes/Node_Database_Container.class.php b/libraries/navigation/Nodes/Node_Database_Container.class.php index c76da069d1..d666fee482 100644 --- a/libraries/navigation/Nodes/Node_Database_Container.class.php +++ b/libraries/navigation/Nodes/Node_Database_Container.class.php @@ -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') );