aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/ImportBundle/Import/ChromeImport.php
diff options
context:
space:
mode:
authorJeremy Benoist <jeremy.benoist@gmail.com>2016-09-25 15:29:40 +0200
committerJeremy Benoist <jeremy.benoist@gmail.com>2016-09-25 15:32:02 +0200
commit27acc6ddb8b0a1549a3f015171621e3056ef65d2 (patch)
treee2fd978d48b52638f7ae4cf0c7a6a68007b95bf6 /src/Wallabag/ImportBundle/Import/ChromeImport.php
parentf0fd82d039f491d1057ed194084ee40d4327011e (diff)
downloadwallabag-27acc6ddb8b0a1549a3f015171621e3056ef65d2.tar.gz
wallabag-27acc6ddb8b0a1549a3f015171621e3056ef65d2.tar.zst
wallabag-27acc6ddb8b0a1549a3f015171621e3056ef65d2.zip
Fix bad date format in Browser import
Diffstat (limited to 'src/Wallabag/ImportBundle/Import/ChromeImport.php')
-rw-r--r--src/Wallabag/ImportBundle/Import/ChromeImport.php31
1 files changed, 0 insertions, 31 deletions
diff --git a/src/Wallabag/ImportBundle/Import/ChromeImport.php b/src/Wallabag/ImportBundle/Import/ChromeImport.php
index 1af7cc87..60602a1b 100644
--- a/src/Wallabag/ImportBundle/Import/ChromeImport.php
+++ b/src/Wallabag/ImportBundle/Import/ChromeImport.php
@@ -29,35 +29,4 @@ class ChromeImport extends BrowserImport
29 { 29 {
30 return 'import.chrome.description'; 30 return 'import.chrome.description';
31 } 31 }
32
33 /**
34 * {@inheritdoc}
35 */
36 protected function prepareEntry($entry = [])
37 {
38 $data = [
39 'title' => $entry['name'],
40 'html' => '',
41 'url' => $entry['url'],
42 'is_archived' => $this->markAsRead,
43 'tags' => '',
44 'created_at' => $entry['date_added'],
45 ];
46
47 if (array_key_exists('tags', $entry) && $entry['tags'] != '') {
48 $data['tags'] = $entry['tags'];
49 }
50
51 return $data;
52 }
53
54 /**
55 * {@inheritdoc}
56 */
57 protected function setEntryAsRead(array $importedEntry)
58 {
59 $importedEntry['is_archived'] = 1;
60
61 return $importedEntry;
62 }
63} 32}