Backwards compatibility
This commit is contained in:
@@ -18,6 +18,8 @@ $Source$
|
||||
* main.php3: Undefined variable.
|
||||
* lang/german-*.inc.php3: Fixed a typo, thanks to Steve Alberty (staybyte).
|
||||
* Documentation.html: XHTML fixes.
|
||||
* libraries/common.lib.php3, libraries/config_import.lib.php3: Improved
|
||||
backwards compatibility for old config files.
|
||||
|
||||
2002-08-14 Olivier L. M<>ller <om@omnis.ch>
|
||||
* Documentation.html, README, ANNOUNCE.txt, tbl_dump.php3:
|
||||
|
@@ -128,7 +128,7 @@ h1 {font-family: sans-serif; font-size: large; font-weight: bold}
|
||||
* Includes compatibility code for older config.inc.php3 revisions
|
||||
* if necessary
|
||||
*/
|
||||
if (!isset($cfg['FileRevision']) || (int) substr($cfg['FileRevision'], 13, 3) < 131) {
|
||||
if (!isset($cfg['FileRevision']) || (int) substr($cfg['FileRevision'], 13, 3) < 137) {
|
||||
include('./libraries/config_import.lib.php3');
|
||||
}
|
||||
|
||||
|
@@ -373,15 +373,25 @@ if (!defined('PMA_CONFIG_IMPORT_LIB_INCLUDED')){
|
||||
$cfg['DefaultTabTable'] = 'tbl_properties_structure.php3';
|
||||
}
|
||||
|
||||
if (!isset($cfg['ManualBaseShort'])) {
|
||||
if (!isset($cfg['ManualBase'])) {
|
||||
if (isset($cfgManualBaseShort)) {
|
||||
$cfg['ManualBaseShort'] = $cfgManualBaseShort;
|
||||
$cfg['ManualBase'] = $cfgManualBaseShort;
|
||||
$cfg['MySQLManualType'] = 'old';
|
||||
unset($cfgManualBaseShort);
|
||||
} else if (isset($cfg['ManualBaseShort'])) {
|
||||
$cfg['ManualBase'] = $cfg['ManualBaseShort'];
|
||||
$cfg['MySQLManualType'] = 'old';
|
||||
unset($cfg['ManualBaseShort']);
|
||||
} else {
|
||||
$cfg['ManualBaseShort'] = 'http://www.mysql.com/doc';
|
||||
$cfg['ManualBase'] = 'http://www.mysql.com/doc/en';
|
||||
$cfg['MySQLManualType'] = 'searchable';
|
||||
}
|
||||
}
|
||||
|
||||
if (!isset($cfg['MySQLManualType'])) {
|
||||
$cfg['MySQLManualType'] = 'none';
|
||||
}
|
||||
|
||||
if (!isset($cfg['DefaultLang'])) {
|
||||
if (isset($cfgDefaultLang)) {
|
||||
$cfg['DefaultLang'] = $cfgDefaultLang;
|
||||
|
Reference in New Issue
Block a user