diff --git a/plugins/googlereaderimport/init.php b/plugins/googlereaderimport/init.php index f7d876b90..d25d3288f 100644 --- a/plugins/googlereaderimport/init.php +++ b/plugins/googlereaderimport/init.php @@ -374,6 +374,7 @@ class GoogleReaderImport extends Plugin { "; + print ""; print ""; #pane } diff --git a/plugins/import_export/init.php b/plugins/import_export/init.php index 1d7a8e55f..a01a612a4 100644 --- a/plugins/import_export/init.php +++ b/plugins/import_export/init.php @@ -83,6 +83,7 @@ class Import_Export extends Plugin implements IHandler { "; + print ""; print ""; # pane } @@ -416,13 +417,35 @@ class Import_Export extends Plugin implements IHandler { print "
" . T_sprintf("Could not upload file. You might need to adjust upload_max_filesize in PHP.ini (current value = %s)", ini_get("upload_max_filesize")) . " or use CLI import tool.
"; + print_error(__('Error: please upload OPML file.')); + return; + } + if (is_file($tmp_file)) { + $this->perform_data_import($this->link, $tmp_file, $_SESSION['uid']); + unlink($tmp_file); + } else { + print_error(__('No file uploaded.')); + return; } print "