X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FCoreBundle%2FCommand%2FExportCommand.php;h=128f9d65bc7949c758b0305725b38bff0d5df43b;hb=ada5d5b2694ec95c6ca84aa91f22add1973343e0;hp=b07087c8a1219e847d79eefb9bb8a5cd7852e593;hpb=882da5c5eb283cbc7a869182b26a69b8fbebda2b;p=github%2Fwallabag%2Fwallabag.git
diff --git a/src/Wallabag/CoreBundle/Command/ExportCommand.php b/src/Wallabag/CoreBundle/Command/ExportCommand.php
index b07087c8..128f9d65 100644
--- a/src/Wallabag/CoreBundle/Command/ExportCommand.php
+++ b/src/Wallabag/CoreBundle/Command/ExportCommand.php
@@ -47,12 +47,12 @@ class ExportCommand extends ContainerAwareCommand
->getQuery()
->getResult();
- $io->text(sprintf('Exporting %d entrie(s) for user %s...', count($entries), $user->getUserName()));
+ $io->text(sprintf('Exporting %d entrie(s) for user %s...', \count($entries), $user->getUserName()));
$filePath = $input->getArgument('filepath');
if (!$filePath) {
- $filePath = $this->getContainer()->getParameter('kernel.root_dir') . '/../' . sprintf('%s-export.json', $user->getUsername());
+ $filePath = $this->getContainer()->getParameter('kernel.project_dir') . '/' . sprintf('%s-export.json', $user->getUsername());
}
try {