Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChanaka Indrajith <pe.chanaka.ck@gmail.com>2012-06-30 10:00:39 +0400
committerChanaka Indrajith <pe.chanaka.ck@gmail.com>2012-06-30 10:00:39 +0400
commit106265a7f8709d6ac95c8600550197725fea5ba3 (patch)
tree3c00897d9f01d3f5fba8e3ca2d76f6959d32a2a9 /import.php
parent038a81b1a82a05868e65ddf86dab9409aa9ffe17 (diff)
parent3b68252564b755b668c3f4f295da4256b9d26ca4 (diff)
Resolve conflicts
Diffstat (limited to 'import.php')
-rw-r--r--import.php15
1 files changed, 11 insertions, 4 deletions
diff --git a/import.php b/import.php
index d3ba5e8799..a558144242 100644
--- a/import.php
+++ b/import.php
@@ -432,13 +432,20 @@ if (! $error && isset($skip)) {
if (! $error) {
// Check for file existance
- if (!file_exists('libraries/import/' . $format . '.php')) {
+ require_once("libraries/plugin_interface.lib.php");
+ $import_plugin = PMA_getPlugin(
+ "import",
+ $format,
+ 'libraries/plugins/import/'
+ );
+ if ($import_plugin == null) {
$error = true;
- $message = PMA_Message::error(__('Could not load import plugins, please check your installation!'));
+ $message = PMA_Message::error(
+ __('Could not load import plugins, please check your installation!')
+ );
} else {
// Do the real import
- $plugin_param = $import_type;
- include 'libraries/import/' . $format . '.php';
+ $import_plugin->doImport();
}
}