Make code more redable, default to MySQL 5.0 documentation as it is latest stable version.

This commit is contained in:
Michal Čihař
2005-11-21 00:30:38 +00:00
parent 14cb2f4608
commit d7b1759c54
2 changed files with 11 additions and 8 deletions

View File

@@ -580,14 +580,15 @@ if ( ! defined( 'PMA_MINIMUM_COMMON' ) ) {
case 'viewable':
default:
if (empty($link)) $link = 'index';
$mysql = '4.1';
if ( ! defined( 'PMA_MYSQL_INT_VERSION' )
|| PMA_MYSQL_INT_VERSION < 50000 ) {
$mysql = '4.1';
} elseif (PMA_MYSQL_INT_VERSION >= 50100) {
$mysql = '5.1';
} elseif (PMA_MYSQL_INT_VERSION >= 50000) {
$mysql = '5.0';
$mysql = '5.0';
if (defined( 'PMA_MYSQL_INT_VERSION')) {
if (PMA_MYSQL_INT_VERSION < 50000) {
$mysql = '4.1';
} elseif (PMA_MYSQL_INT_VERSION >= 50100) {
$mysql = '5.1';
} elseif (PMA_MYSQL_INT_VERSION >= 50000) {
$mysql = '5.0';
}
}
$url = $cfg['MySQLManualBase'] . '/' . $mysql . '/en/' . $link . '.html';
break;