Group databases by rightmost separator (bug #1325651).
This commit is contained in:
@@ -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
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user