aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas.loeuillet@smile.fr>2016-02-05 13:35:59 +0100
committerNicolas LÅ“uillet <nicolas.loeuillet@smile.fr>2016-02-05 13:35:59 +0100
commitf898102c85e8b2d6a979e91ae2f16278b41d60b6 (patch)
treed9e5249c023d6fa799e7c15f86422069e164cb99 /src/Wallabag
parent704ed658a990fee64cf8752beedcfbf30f8a5406 (diff)
downloadwallabag-f898102c85e8b2d6a979e91ae2f16278b41d60b6.tar.gz
wallabag-f898102c85e8b2d6a979e91ae2f16278b41d60b6.tar.zst
wallabag-f898102c85e8b2d6a979e91ae2f16278b41d60b6.zip
Exported entries were added twice in export file
Diffstat (limited to 'src/Wallabag')
-rw-r--r--src/Wallabag/CoreBundle/Helper/EntriesExport.php15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/Wallabag/CoreBundle/Helper/EntriesExport.php b/src/Wallabag/CoreBundle/Helper/EntriesExport.php
index c9aac6e5..6ecdf019 100644
--- a/src/Wallabag/CoreBundle/Helper/EntriesExport.php
+++ b/src/Wallabag/CoreBundle/Helper/EntriesExport.php
@@ -99,6 +99,7 @@ class EntriesExport
99 99
100 case 'xml': 100 case 'xml':
101 return $this->produceXML(); 101 return $this->produceXML();
102
102 case 'txt': 103 case 'txt':
103 return $this->produceTXT(); 104 return $this->produceTXT();
104 } 105 }
@@ -185,7 +186,7 @@ class EntriesExport
185 'Content-Disposition' => 'attachment; filename="'.$this->title.'.epub"', 186 'Content-Disposition' => 'attachment; filename="'.$this->title.'.epub"',
186 'Content-Transfer-Encoding' => 'binary', 187 'Content-Transfer-Encoding' => 'binary',
187 ) 188 )
188 )->send(); 189 );
189 } 190 }
190 191
191 /** 192 /**
@@ -235,7 +236,7 @@ class EntriesExport
235 'Content-Disposition' => 'attachment; filename="'.$this->title.'.mobi"', 236 'Content-Disposition' => 'attachment; filename="'.$this->title.'.mobi"',
236 'Content-Transfer-Encoding' => 'binary', 237 'Content-Transfer-Encoding' => 'binary',
237 ) 238 )
238 )->send(); 239 );
239 } 240 }
240 241
241 /** 242 /**
@@ -289,7 +290,7 @@ class EntriesExport
289 'Content-Disposition' => 'attachment; filename="'.$this->title.'.pdf"', 290 'Content-Disposition' => 'attachment; filename="'.$this->title.'.pdf"',
290 'Content-Transfer-Encoding' => 'binary', 291 'Content-Transfer-Encoding' => 'binary',
291 ) 292 )
292 )->send(); 293 );
293 } 294 }
294 295
295 /** 296 /**
@@ -332,7 +333,7 @@ class EntriesExport
332 'Content-Disposition' => 'attachment; filename="'.$this->title.'.csv"', 333 'Content-Disposition' => 'attachment; filename="'.$this->title.'.csv"',
333 'Content-Transfer-Encoding' => 'UTF-8', 334 'Content-Transfer-Encoding' => 'UTF-8',
334 ) 335 )
335 )->send(); 336 );
336 } 337 }
337 338
338 private function produceJSON() 339 private function produceJSON()
@@ -345,7 +346,7 @@ class EntriesExport
345 'Content-Disposition' => 'attachment; filename="'.$this->title.'.json"', 346 'Content-Disposition' => 'attachment; filename="'.$this->title.'.json"',
346 'Content-Transfer-Encoding' => 'UTF-8', 347 'Content-Transfer-Encoding' => 'UTF-8',
347 ) 348 )
348 )->send(); 349 );
349 } 350 }
350 351
351 private function produceXML() 352 private function produceXML()
@@ -358,7 +359,7 @@ class EntriesExport
358 'Content-Disposition' => 'attachment; filename="'.$this->title.'.xml"', 359 'Content-Disposition' => 'attachment; filename="'.$this->title.'.xml"',
359 'Content-Transfer-Encoding' => 'UTF-8', 360 'Content-Transfer-Encoding' => 'UTF-8',
360 ) 361 )
361 )->send(); 362 );
362 } 363 }
363 364
364 private function produceTXT() 365 private function produceTXT()
@@ -378,7 +379,7 @@ class EntriesExport
378 'Content-Disposition' => 'attachment; filename="'.$this->title.'.txt"', 379 'Content-Disposition' => 'attachment; filename="'.$this->title.'.txt"',
379 'Content-Transfer-Encoding' => 'UTF-8', 380 'Content-Transfer-Encoding' => 'UTF-8',
380 ) 381 )
381 )->send(); 382 );
382 } 383 }
383 384
384 /** 385 /**