Add backward compatibility code to affect above renaming.

This commit is contained in:
Michal Čihař
2006-10-25 14:16:37 +00:00
parent cac4247057
commit f0780e3129
2 changed files with 12 additions and 0 deletions

View File

@@ -12,6 +12,8 @@ $HeadURL$
* [too much files]: * [too much files]:
- Rename tbl_* files to drop useless _properties part. - Rename tbl_* files to drop useless _properties part.
- Rename db_* files to drop useless _details part. - Rename db_* files to drop useless _details part.
* libraries/Config.class.php: Add backward compatibility code to affect
above renaming.
2006-10-19 Marc Delisle <lem9@users.sourceforge.net> 2006-10-19 Marc Delisle <lem9@users.sourceforge.net>
* libraries/common.lib.php, /database_interface.lib.php,/session.inc.php: * libraries/common.lib.php, /database_interface.lib.php,/session.inc.php:

View File

@@ -383,6 +383,16 @@ class PMA_Config
$this->source_mtime = filemtime($this->getSource()); $this->source_mtime = filemtime($this->getSource());
} }
/**
* Backward compatibility code
*/
if (!empty($cfg['DefaultTabTable'])) {
$cfg['DefaultTabTable'] = str_replace('_properties', '', str_replace('tbl_properties.php', 'tbl_sql.php', $cfg['DefaultTabTable']));
}
if (!empty($cfg['DefaultTabDatabase'])) {
$cfg['DefaultTabDatabase'] = str_replace('_details', '', str_replace('db_details.php', 'db_sql.php', $cfg['DefaultTabDatabase']));
}
/** /**
* @todo check validity of $_COOKIE['pma_collation_connection'] * @todo check validity of $_COOKIE['pma_collation_connection']
*/ */