mirror of
https://github.com/wallabag/wallabag.git
synced 2025-07-22 17:18:37 +00:00
Convert other imports to Rabbit
This commit is contained in:
parent
ef75e1220e
commit
c98db1b653
14 changed files with 334 additions and 263 deletions
|
@ -38,6 +38,7 @@ abstract class WallabagController extends Controller
|
|||
$form->handleRequest($request);
|
||||
|
||||
$wallabag = $this->getImportService();
|
||||
$wallabag->setUser($this->getUser());
|
||||
|
||||
if ($form->isValid()) {
|
||||
$file = $form->get('file')->getData();
|
||||
|
@ -46,7 +47,6 @@ abstract class WallabagController extends Controller
|
|||
|
||||
if (in_array($file->getClientMimeType(), $this->getParameter('wallabag_import.allow_mimetypes')) && $file->move($this->getParameter('wallabag_import.resource_dir'), $name)) {
|
||||
$res = $wallabag
|
||||
->setUser($this->getUser())
|
||||
->setFilepath($this->getParameter('wallabag_import.resource_dir').'/'.$name)
|
||||
->setMarkAsRead($markAsRead)
|
||||
->import();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue