Skip to content

Commit

Permalink
Add backward compatibility code to affect above renaming.
Browse files Browse the repository at this point in the history
  • Loading branch information
nijel committed Oct 25, 2006
1 parent cac4247 commit f0780e3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ChangeLog
Expand Up @@ -12,6 +12,8 @@ $HeadURL$
* [too much files]:
- Rename tbl_* files to drop useless _properties 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>
* libraries/common.lib.php, /database_interface.lib.php,/session.inc.php:
Expand Down
10 changes: 10 additions & 0 deletions libraries/Config.class.php
Expand Up @@ -383,6 +383,16 @@ function load($source = null)
$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']
*/
Expand Down

0 comments on commit f0780e3

Please sign in to comment.