diff --git a/ChangeLog b/ChangeLog index 3691e1f50..c979d0a4e 100755 --- a/ChangeLog +++ b/ChangeLog @@ -14,6 +14,8 @@ $Source$ fixed different font sizes * footer.inc.php, libraries/dbg/*: use $GLOBALS as this scripts can be included from inside a function + * left.php, libraries/common.lib.php: + fixed some rtl lang issues 2005-11-02 Michal Čihař * config.default.php: This is not a configuration file. diff --git a/left.php b/left.php index 4ddec556e..4ff3e955d 100644 --- a/left.php +++ b/left.php @@ -6,18 +6,13 @@ */ /** - * Gets the variables sent to this script, retains the db name that may have - * been defined as startup option and include a core library + * Gets a core script and starts output buffering work */ -require_once('./libraries/grab_globals.lib.php'); +require_once('./libraries/common.lib.php'); // free the session file, for the other frames to be loaded session_write_close(); -/** - * Gets a core script and starts output buffering work - */ -require_once('./libraries/common.lib.php'); require_once('./libraries/ob.lib.php'); if ($GLOBALS['cfg']['OBGzip']) { $ob_mode = PMA_outBufferModeGet(); @@ -160,8 +155,7 @@ if ( $num_dbs === 0 ) { .'' . "\n"; unset( $_location ); } -?> - +?>
'; // ... and we need to refresh both frames on db selection - ?> + ?> ', 'main' ); return false;"> - - () + (' . $db['num_tables'] . ') '; + } + echo htmlspecialchars( $db['disp_name'] ); + if ( $GLOBALS['text_dir'] === 'ltr' ) { + echo ' (' . $db['num_tables'] . ') '; + } + ?> + ?> - - () + (' . $db['num_tables'] . ') '; + } + echo htmlspecialchars( $db['disp_name'] ); + if ( $GLOBALS['text_dir'] === 'ltr' ) { + echo ' (' . $db['num_tables'] . ') '; + } + ?> '; - - ?> + ?> - - () + (' . $table['tab_count'] . ') '; + } + echo htmlspecialchars( substr( $group, 0, strlen( $group ) - strlen( $sep ) ) ); + if ( $GLOBALS['text_dir'] === 'ltr' ) { + echo ' (' . $table['tab_count'] . ') '; + } + ?> ' . "\n"; } } - echo '' . "\n"; + echo ''; } -?> +?>
diff --git a/libraries/common.lib.php b/libraries/common.lib.php index 60a4b133c..ebe96841c 100644 --- a/libraries/common.lib.php +++ b/libraries/common.lib.php @@ -898,9 +898,12 @@ function PMA_getDbList() { */ function PMA_getHtmlSelectDb( $selected = '' ) { $dblist = PMA_getDbList(); - $return = '