From 91548801bbc9b6c246cacce82b0bb7eeddf4c9a0 Mon Sep 17 00:00:00 2001 From: Umair Khan Date: Mon, 20 Jan 2014 20:26:52 +0530 Subject: [PATCH] implement feature request #1489 Signed-off-by: Umair Khan --- .../navigation/Nodes/Node_Database_Container.class.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libraries/navigation/Nodes/Node_Database_Container.class.php b/libraries/navigation/Nodes/Node_Database_Container.class.php index ed1366decc..052d5485c1 100644 --- a/libraries/navigation/Nodes/Node_Database_Container.class.php +++ b/libraries/navigation/Nodes/Node_Database_Container.class.php @@ -30,7 +30,11 @@ class Node_Database_Container extends Node $new = PMA_NodeFactory::getInstance( 'Node', _pgettext('Create new database', 'New') ); - $new->isNew = true; + if($GLOBALS['is_create_db_priv']) { + $new->isNew = true; + } else { + $new->isNew = false; + } $new->icon = PMA_Util::getImage('b_newdb.png', ''); $new->links = array( 'text' => 'server_databases.php?server=' . $GLOBALS['server']