X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;ds=sidebyside;f=src%2FWallabag%2FImportBundle%2FImport%2FPocketImport.php;h=29361a328cf11d44c62f4b1e18c1288b8a4ae15d;hb=bba271e619eabbd525d38d125e4b77f838cadba5;hp=238ddbd1f71548b304a24489b095a0e98f0b6fd4;hpb=79d0e38e7ff975b2e0306d3dd96f57509fd84aef;p=github%2Fwallabag%2Fwallabag.git diff --git a/src/Wallabag/ImportBundle/Import/PocketImport.php b/src/Wallabag/ImportBundle/Import/PocketImport.php index 238ddbd1..29361a32 100644 --- a/src/Wallabag/ImportBundle/Import/PocketImport.php +++ b/src/Wallabag/ImportBundle/Import/PocketImport.php @@ -60,7 +60,7 @@ class PocketImport implements ImportInterface */ public function getDescription() { - return 'This importer will import all your Pocket data. Pocket doesn\'t allow us to retrieve content from their service, so the readable content of each article will be re-fetched by wallabag.'; + return 'import.pocket.description'; } /** @@ -68,7 +68,7 @@ class PocketImport implements ImportInterface * * @param string $redirectUri Redirect url in case of error * - * @return string request_token for callback method + * @return string|false request_token for callback method */ public function getRequestToken($redirectUri) { @@ -139,7 +139,7 @@ class PocketImport implements ImportInterface /** * Get whether articles must be all marked as read. */ - public function getRead() + public function getMarkAsRead() { return $this->markAsRead; } @@ -258,6 +258,7 @@ class PocketImport implements ImportInterface // flush every 20 entries if (($i % 20) === 0) { $this->em->flush(); + $this->em->clear($entry); } ++$i; }