]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - src/Wallabag/CoreBundle/Command/ImportCommand.php
form to upload file
[github/wallabag/wallabag.git] / src / Wallabag / CoreBundle / Command / ImportCommand.php
index 16c84229fb441fe4b60a8a6dc32dc1c1e5db1f9e..6be6f5e1113309e65ed3af2d0d03d00cb050ff43 100644 (file)
@@ -51,7 +51,7 @@ class ImportCommand extends ContainerAwareCommand
         $batchSize = 20;
         $i = 1;
 
-        $user = $em->getRepository('WallabagCoreBundle:User')
+        $user = $em->getRepository('WallabagUserBundle:User')
             ->findOneById($input->getArgument('userId'));
 
         if (!is_object($user)) {
@@ -116,6 +116,7 @@ class ImportCommand extends ContainerAwareCommand
     protected function get(InputInterface $input, OutputInterface $output)
     {
         $filename = __DIR__.'/../../../../web/uploads/import/'.$input->getArgument('userId').'.json';
+
         $data = $this->convert($filename);
 
         return $data;