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

@@ -10,6 +10,8 @@ $Source$
Marc). Marc).
* libraries/common.lib.php, lang/*: Translate message that has been * libraries/common.lib.php, lang/*: Translate message that has been
ignored for 2.7.0 release. ignored for 2.7.0 release.
* libraries/common.lib.php: Make code more redable, default to MySQL 5.0
documentation as it is latest stable version.
2005-11-20 Marc Delisle <lem9@users.sourceforge.net> 2005-11-20 Marc Delisle <lem9@users.sourceforge.net>
### 2.7.0-rc1 released ### 2.7.0-rc1 released

View File

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