Skip to content

Commit

Permalink
Add configuration option ShowNavigationAsTree with true as default
Browse files Browse the repository at this point in the history
Signed-off-by: Atul Pratap Singh <atulpratapsingh05@gmail.com>
  • Loading branch information
atul516 committed Jan 15, 2015
1 parent ca62fa6 commit 2abe91a
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions libraries/Header.class.php
Expand Up @@ -237,6 +237,7 @@ public function getJsParams()
'db' => $db,
'token' => $_SESSION[' PMA_token '],
'text_dir' => $GLOBALS['text_dir'],
'show_navigation_as_tree'=> $GLOBALS['cfg']['ShowNavigationAsTree'],
'pma_absolute_uri' => $GLOBALS['cfg']['PmaAbsoluteUri'],
'pma_text_default_tab' => PMA_Util::getTitleForTarget(
$GLOBALS['cfg']['DefaultTabTable']
Expand Down
7 changes: 7 additions & 0 deletions libraries/config.default.php
Expand Up @@ -810,6 +810,13 @@
* Navigation panel setup
*/

/**
* Whether to display navigation panel as tree or as pre-4.0 style
*
* @global boolean $cfg['ShowNavigationAsTree']
*/
$cfg['ShowNavigationAsTree'] = true;

/**
* maximum number of first level databases displayed in navigation panel
*
Expand Down
2 changes: 2 additions & 0 deletions libraries/config/messages.inc.php
Expand Up @@ -415,6 +415,8 @@
. '([kbd]0[/kbd] for no limit).'
);
$strConfigMemoryLimit_name = __('Memory limit');
$strConfigShowNavigationAsTree_desc = __('Whether to display navigation panel in tree style or in pre-4.0 style');
$strConfigShowNavigationAsTree_name = __('Show Navigation as tree');
$strConfigNavigationLinkWithMainPanel_desc = __('Link with main panel by highlighting the current database or table.');
$strConfigNavigationLinkWithMainPanel_name = __('Link with main panel');
$strConfigNavigationDisplayLogo_desc = __('Show logo in navigation panel.');
Expand Down
1 change: 1 addition & 0 deletions libraries/config/setup.forms.php
Expand Up @@ -162,6 +162,7 @@
'ShowAsPHP',
'Refresh'));
$forms['Navi_panel']['Navi_panel'] = array(
'ShowNavigationAsTree',
'NavigationLinkWithMainPanel',
'NavigationDisplayLogo',
'NavigationLogoLink',
Expand Down
1 change: 1 addition & 0 deletions libraries/config/user_preferences.forms.php
Expand Up @@ -73,6 +73,7 @@
'SQLQuery/ShowAsPHP',
'SQLQuery/Refresh');
$forms['Navi_panel']['Navi_panel'] = array(
'ShowNavigationAsTree',
'NavigationLinkWithMainPanel',
'NavigationDisplayLogo',
'NavigationLogoLink',
Expand Down

0 comments on commit 2abe91a

Please sign in to comment.