Expand navigation bar
Gray out trivial database names
This commit is contained in:
@@ -27,6 +27,16 @@ require_once './libraries/List.class.php';
|
||||
*/
|
||||
/*public*/ class PMA_List_Database extends PMA_List
|
||||
{
|
||||
/**
|
||||
* @var array list of trivial database names
|
||||
*/
|
||||
protected $_trivial_db_names = array(
|
||||
'information_schema',
|
||||
'mysql',
|
||||
'performance_schema',
|
||||
'sys',
|
||||
);
|
||||
|
||||
/**
|
||||
* @var mixed database link resource|object to be used
|
||||
*/
|
||||
@@ -387,6 +397,9 @@ require_once './libraries/List.class.php';
|
||||
if (! empty($db['comment'])) {
|
||||
$return .= ' title="' . htmlspecialchars($db['comment']) . '"';
|
||||
}
|
||||
if (in_array($db['name'], $this->_trivial_db_names)) {
|
||||
$return .= ' class="trivial"';
|
||||
}
|
||||
$return .= ' href="index.php?' . PMA_generate_common_url($db['name'])
|
||||
. '" target="_parent">';
|
||||
if ($cut) {
|
||||
|
Reference in New Issue
Block a user