diff options
Diffstat (limited to 'src/Wallabag/ImportBundle')
-rw-r--r-- | src/Wallabag/ImportBundle/Import/PocketImport.php | 3 | ||||
-rw-r--r-- | src/Wallabag/ImportBundle/Import/WallabagV1Import.php | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/Wallabag/ImportBundle/Import/PocketImport.php b/src/Wallabag/ImportBundle/Import/PocketImport.php index 853ad135..267c4af5 100644 --- a/src/Wallabag/ImportBundle/Import/PocketImport.php +++ b/src/Wallabag/ImportBundle/Import/PocketImport.php | |||
@@ -18,6 +18,7 @@ class PocketImport implements ImportInterface | |||
18 | private $em; | 18 | private $em; |
19 | private $contentProxy; | 19 | private $contentProxy; |
20 | private $logger; | 20 | private $logger; |
21 | private $client; | ||
21 | private $consumerKey; | 22 | private $consumerKey; |
22 | private $skippedEntries = 0; | 23 | private $skippedEntries = 0; |
23 | private $importedEntries = 0; | 24 | private $importedEntries = 0; |
@@ -255,7 +256,7 @@ class PocketImport implements ImportInterface | |||
255 | 256 | ||
256 | // flush every 20 entries | 257 | // flush every 20 entries |
257 | if (($i % 20) === 0) { | 258 | if (($i % 20) === 0) { |
258 | $em->flush(); | 259 | $this->em->flush(); |
259 | } | 260 | } |
260 | ++$i; | 261 | ++$i; |
261 | } | 262 | } |
diff --git a/src/Wallabag/ImportBundle/Import/WallabagV1Import.php b/src/Wallabag/ImportBundle/Import/WallabagV1Import.php index aff5af40..0866ebe9 100644 --- a/src/Wallabag/ImportBundle/Import/WallabagV1Import.php +++ b/src/Wallabag/ImportBundle/Import/WallabagV1Import.php | |||
@@ -149,7 +149,7 @@ class WallabagV1Import implements ImportInterface | |||
149 | 149 | ||
150 | // flush every 20 entries | 150 | // flush every 20 entries |
151 | if (($i % 20) === 0) { | 151 | if (($i % 20) === 0) { |
152 | $em->flush(); | 152 | $this->em->flush(); |
153 | } | 153 | } |
154 | ++$i; | 154 | ++$i; |
155 | } | 155 | } |