mirror of
https://github.com/wallabag/wallabag.git
synced 2024-11-27 11:31:05 +00:00
minimum of control on server side added
This commit is contained in:
parent
b738bea9ca
commit
dc76489221
1 changed files with 4 additions and 1 deletions
|
@ -906,7 +906,7 @@ class Poche
|
||||||
*/
|
*/
|
||||||
public function import() {
|
public function import() {
|
||||||
|
|
||||||
if ( isset($_FILES['file']) ) {
|
if ( isset($_FILES['file']) && $_FILES['file']['tmp_name'] ) {
|
||||||
Tools::logm('Import stated: parsing file');
|
Tools::logm('Import stated: parsing file');
|
||||||
|
|
||||||
// assume, that file is in json format
|
// assume, that file is in json format
|
||||||
|
@ -976,6 +976,9 @@ class Poche
|
||||||
}
|
}
|
||||||
Tools::logm('Import of articles finished: '.$i.' articles added (w/o content if not provided).');
|
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
|
//file parsing finished here
|
||||||
|
|
||||||
//now download article contents if any
|
//now download article contents if any
|
||||||
|
|
Loading…
Reference in a new issue