Expand navigation bar

Gray out trivial database names
This commit is contained in:
2025-04-21 20:40:48 -07:00
parent 2541f5ff58
commit 41d9e77a5b
3 changed files with 33 additions and 30 deletions

View File

@@ -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) {