*/
public function import() {
- if ( isset($_FILES['file']) ) {
+ if ( isset($_FILES['file']) && $_FILES['file']['tmp_name'] ) {
Tools::logm('Import stated: parsing file');
// assume, that file is in json format
}
Tools::logm('Import of articles finished: '.$i.' articles added (w/o content if not provided).');
}
+ else {
+ $this->messages->add('s', _('Did you forget to select a file?'));
+ }
//file parsing finished here
//now download article contents if any