diff options
author | Alex Marin <alex.ukf@gmail.com> | 2012-05-10 16:48:43 +0400 |
---|---|---|
committer | Alex Marin <alex.ukf@gmail.com> | 2012-05-28 01:21:14 +0400 |
commit | a87f283a23e2b2d0e4a11c14e5b484ed57d865b5 (patch) | |
tree | 18bbac506a0906f8276dd5b95be32c38214e7b76 /import.php | |
parent | 35c0fe5b8d26c5143d5b424f438327424d0ac6e1 (diff) |
plugins and OOP: create general class structure and ExportXML
Diffstat (limited to 'import.php')
-rw-r--r-- | import.php | 15 |
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(); } } |