Renamed configuration directive: LeftFrameDBSeparator => NavigationTreeDbSeparator
This commit is contained in:
parent
6f8544c5ef
commit
4f4671b284
@ -56,6 +56,7 @@ VerboseMultiSubmit, ReplaceHelpImg
|
||||
+ Dropped configuration directive: NaviDatabaseNameColor
|
||||
+ Added configuration directive: MaxNavigationItems
|
||||
+ Renamed configuration directive: LeftFrameDBTree => NavigationTreeEnableGrouping
|
||||
+ Renamed configuration directive: LeftFrameDBSeparator => NavigationTreeDbSeparator
|
||||
|
||||
3.5.4.0 (not yet released)
|
||||
- bug #3570212 [edit] uuid_short() is a no-arguments function
|
||||
|
||||
@ -1527,10 +1527,10 @@ CREATE DATABASE,ALTER DATABASE,DROP DATABASE</pre>
|
||||
|
||||
<dt id="cfg_NavigationTreeEnableGrouping">$cfg['NavigationTreeEnableGrouping'] boolean</dt>
|
||||
<dd>Defines whether to group the databases based on a common prefix prefix in their name
|
||||
<a href="#cfg_LeftFrameDBSeparator" class="configrule">$cfg['LeftFrameDBSeparator']</a>.
|
||||
<a href="#cfg_NavigationTreeDbSeparator" class="configrule">$cfg['NavigationTreeDbSeparator']</a>.
|
||||
</dd>
|
||||
|
||||
<dt id="cfg_LeftFrameDBSeparator">$cfg['LeftFrameDBSeparator']
|
||||
<dt id="cfg_NavigationTreeDbSeparator">$cfg['NavigationTreeDbSeparator']
|
||||
string or array</dt>
|
||||
<dd>The string used to separate the parts of the database name when showing
|
||||
them in a tree. Alternatively you can specify more strings in an array
|
||||
|
||||
@ -257,10 +257,10 @@ class PMA_List_Database extends PMA_List
|
||||
|
||||
if (!$GLOBALS['cfg']['NavigationTreeEnableGrouping']) {
|
||||
$separators = array();
|
||||
} elseif (is_array($GLOBALS['cfg']['LeftFrameDBSeparator'])) {
|
||||
$separators = $GLOBALS['cfg']['LeftFrameDBSeparator'];
|
||||
} elseif (!empty($GLOBALS['cfg']['LeftFrameDBSeparator'])) {
|
||||
$separators = array($GLOBALS['cfg']['LeftFrameDBSeparator']);
|
||||
} elseif (is_array($GLOBALS['cfg']['NavigationTreeDbSeparator'])) {
|
||||
$separators = $GLOBALS['cfg']['NavigationTreeDbSeparator'];
|
||||
} elseif (!empty($GLOBALS['cfg']['NavigationTreeDbSeparator'])) {
|
||||
$separators = array($GLOBALS['cfg']['NavigationTreeDbSeparator']);
|
||||
} else {
|
||||
$separators = array();
|
||||
}
|
||||
|
||||
@ -800,9 +800,9 @@ $cfg['NavigationTreeEnableGrouping'] = true;
|
||||
/**
|
||||
* the separator to sub-tree the select-based light menu tree
|
||||
*
|
||||
* @global string $cfg['LeftFrameDBSeparator']
|
||||
* @global string $cfg['NavigationTreeDbSeparator']
|
||||
*/
|
||||
$cfg['LeftFrameDBSeparator'] = '_';
|
||||
$cfg['NavigationTreeDbSeparator'] = '_';
|
||||
|
||||
/**
|
||||
* Which string will be used to generate table prefixes
|
||||
|
||||
@ -43,7 +43,7 @@ $cfg_db['LeftDefaultTabTable'] = array(
|
||||
'tbl_change.php', // insert row page
|
||||
'sql.php' // browse page
|
||||
);
|
||||
$cfg_db['LeftFrameDBSeparator'] = 'short_string';
|
||||
$cfg_db['NavigationTreeDbSeparator'] = 'short_string';
|
||||
$cfg_db['LeftFrameTableSeparator'] = 'short_string';
|
||||
$cfg_db['NavigationBarIconic'] = array(
|
||||
true => __('Yes'),
|
||||
|
||||
@ -275,8 +275,6 @@ $strConfigLeftDisplayServers_desc = __('Display server choice at the top of the
|
||||
$strConfigLeftDisplayServers_name = __('Display servers selection');
|
||||
$strConfigLeftDisplayTableFilterMinimum_name = __('Minimum number of tables to display the table filter box');
|
||||
$strConfigLeftDisplayDatabaseFilterMinimum_name = __('Minimum number of databases to display the database filter box');
|
||||
$strConfigLeftFrameDBSeparator_desc = __('String that separates databases into different tree levels');
|
||||
$strConfigLeftFrameDBSeparator_name = __('Database tree separator');
|
||||
$strConfigLeftFrameTableLevel_name = __('Maximum table tree depth');
|
||||
$strConfigLeftFrameTableSeparator_desc = __('String that separates tables into different tree levels');
|
||||
$strConfigLeftFrameTableSeparator_name = __('Table tree separator');
|
||||
@ -318,6 +316,8 @@ $strConfigMemoryLimit_desc = __('The number of bytes a script is allowed to allo
|
||||
$strConfigMemoryLimit_name = __('Memory limit');
|
||||
$strConfigNavigationTreeEnableGrouping_desc = __('Group items in the navigation tree (determined by the separator defined below)');
|
||||
$strConfigNavigationTreeEnableGrouping_name = __('Group items in the tree');
|
||||
$strConfigNavigationTreeDbSeparator_desc = __('String that separates databases into different tree levels');
|
||||
$strConfigNavigationTreeDbSeparator_name = __('Database tree separator');
|
||||
$strConfigRowActionLinks_desc = __('These are Edit, Copy and Delete links');
|
||||
$strConfigRowActionLinks_name = __('Where to show the table row links');
|
||||
$strConfigNaturalOrder_desc = __('Use natural order for sorting table and database names');
|
||||
|
||||
@ -173,7 +173,7 @@ $forms['Left_frame']['Left_servers'] = array(
|
||||
'LeftDisplayServers',
|
||||
'DisplayServersList');
|
||||
$forms['Left_frame']['Left_databases'] = array(
|
||||
'LeftFrameDBSeparator');
|
||||
'NavigationTreeDbSeparator');
|
||||
$forms['Left_frame']['Left_tables'] = array(
|
||||
'LeftDisplayTableFilterMinimum',
|
||||
'LeftDefaultTabTable',
|
||||
|
||||
@ -87,7 +87,7 @@ $forms['Left_frame']['Left_frame'] = array(
|
||||
'NavigationTreeEnableGrouping');
|
||||
$forms['Left_frame']['Left_databases'] = array(
|
||||
'LeftDisplayDatabaseFilterMinimum',
|
||||
'LeftFrameDBSeparator');
|
||||
'NavigationTreeDbSeparator');
|
||||
$forms['Left_frame']['Left_tables'] = array(
|
||||
'LeftDisplayTableFilterMinimum',
|
||||
'LeftDefaultTabTable',
|
||||
|
||||
@ -132,7 +132,7 @@ class PMA_NavigationTree
|
||||
$node = new Node('root', Node::CONTAINER);
|
||||
$this->_tree = $node;
|
||||
if ($GLOBALS['cfg']['NavigationTreeEnableGrouping']) {
|
||||
$this->_tree->separator = $GLOBALS['cfg']['LeftFrameDBSeparator'];
|
||||
$this->_tree->separator = $GLOBALS['cfg']['NavigationTreeDbSeparator'];
|
||||
$this->_tree->separator_depth = 10000;
|
||||
}
|
||||
}
|
||||
|
||||
@ -121,7 +121,7 @@ class PMA_List_Database_test extends PHPUnit_Framework_TestCase
|
||||
$GLOBALS['cfgRelation']['commwork'] = true;
|
||||
$GLOBALS['server'] = 1;
|
||||
$GLOBALS['cfg']['NavigationTreeEnableGrouping'] = true;
|
||||
$GLOBALS['cfg']['LeftFrameDBSeparator'] = array('|',',');
|
||||
$GLOBALS['cfg']['NavigationTreeDbSeparator'] = array('|',',');
|
||||
|
||||
$this->assertEquals(
|
||||
$this->object->getGroupedDetails(10, 100),
|
||||
@ -140,7 +140,7 @@ class PMA_List_Database_test extends PHPUnit_Framework_TestCase
|
||||
$GLOBALS['cfgRelation']['commwork'] = true;
|
||||
$GLOBALS['server'] = 1;
|
||||
$GLOBALS['cfg']['NavigationTreeEnableGrouping'] = true;
|
||||
$GLOBALS['cfg']['LeftFrameDBSeparator'] = array('|',',');
|
||||
$GLOBALS['cfg']['NavigationTreeDbSeparator'] = array('|',',');
|
||||
|
||||
$this->assertEquals(
|
||||
$this->object->getHtmlListGrouped(true, 5, 5),
|
||||
|
||||
Loading…
Reference in New Issue
Block a user