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:
authorAlex Marin <alex.ukf@gmail.com>2012-05-10 16:48:43 +0400
committerAlex Marin <alex.ukf@gmail.com>2012-05-28 01:21:14 +0400
commita87f283a23e2b2d0e4a11c14e5b484ed57d865b5 (patch)
tree18bbac506a0906f8276dd5b95be32c38214e7b76 /import.php
parent35c0fe5b8d26c5143d5b424f438327424d0ac6e1 (diff)
plugins and OOP: create general class structure and ExportXML
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 49fb2edb1b..fa5630be42 100644
--- a/import.php
+++ b/import.php
@@ -409,13 +409,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();
}
}