phpmyadmin/phpmyadmin — pull request #35 by alexukf (2012-04-16 10:08:51+00:00)
Title: import-export related fixes

1. export xml:
Inside \, the the column names in the CREATE TABLE statement contained spaces, but in the \ tags, they were replaced with underscores, causing a mismatch. I've chosen to remove the replacement from the \ tags instead of doing it again in the structure_schema section, so as to keep the original column names (with spaces) in the exported file.

2. import.lib.php :
Say you have tables with generic names such as TABLE 1, TABLE 2, etc (which can be obtained by exporting a database in csv, and then importing it back). If you export in xml, and then import back, the pattern CREATE .*(TABLE) would match CREATE TABLE 'TABLE 1', resulting in a replacement such as CREATE TABLE IF NOT EXISTS 1 `.

3. PMA_getPlugins:
This should include plugins only once, because in import.php for example they are already included when this function is called.