Group databases by rightmost separator (bug #1325651).

This commit is contained in:
Michal Čihař
2005-10-17 11:46:08 +00:00
parent b38e264afd
commit a9f87975ce
2 changed files with 5 additions and 5 deletions

View File

@@ -7,6 +7,8 @@ $Source$
2005-10-17 Michal Čihař <michal@cihar.com>
* lang/czech: Translation fixes.
* libraries/common.lib.php: Group databases by rightmost separator (bug
#1325651).
2005-10-17 Sebastian Mendel <cybot_tm@users.sourceforge.net>
* css/phpmyadmin.css.php: border around tabs bug #1326730

View File

@@ -829,11 +829,9 @@ function PMA_getDbList() {
&& $GLOBALS['cfg']['LeftFrameDBSeparator']
&& strstr( $db, $GLOBALS['cfg']['LeftFrameDBSeparator'] ) )
{
$parts = explode( $GLOBALS['cfg']['LeftFrameDBSeparator'],
$db, 2 );
$group = $parts[0];
$disp_name_cut = $GLOBALS['cfg']['LeftFrameDBSeparator']
. $parts[1];
$pos = strrpos($db, $GLOBALS['cfg']['LeftFrameDBSeparator']);
$group = substr($db, 0, $pos);
$disp_name_cut = substr($db, $pos);
} else {
$group = $db;
$disp_name_cut = $db;