]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Fixed @tcitworld's review
authorNicolas LÅ“uillet <nicolas@loeuillet.org>
Sun, 8 Oct 2017 09:03:32 +0000 (11:03 +0200)
committerJeremy Benoist <jeremy.benoist@gmail.com>
Wed, 11 Oct 2017 08:43:19 +0000 (10:43 +0200)
src/Wallabag/CoreBundle/Helper/EntriesExport.php
src/Wallabag/CoreBundle/Resources/config/services.yml

index 3e1cd5220fd846f45a1917f28cc8b484306822f2..f43bc33d89106a2269da73a4c4716fa7ba82fee1 100644 (file)
@@ -23,20 +23,16 @@ class EntriesExport
     private $entries = [];
     private $author = 'wallabag';
     private $language = '';
-    private $footerTemplate = '<div style="text-align:center;">
-        <p>Produced by wallabag with %EXPORT_METHOD%</p>
-        <p>Please open <a href="https://github.com/wallabag/wallabag/issues">an issue</a> if you have trouble with the display of this E-Book on your device.</p>
-        </div>';
 
     /**
      * @param string $wallabagUrl Wallabag instance url
      * @param string $logoPath    Path to the logo FROM THE BUNDLE SCOPE
      */
-    public function __construct($wallabagUrl, $logoPath, TranslatorInterface $translator)
+    public function __construct(TranslatorInterface $translator, $wallabagUrl, $logoPath)
     {
+        $this->translator = $translator;
         $this->wallabagUrl = $wallabagUrl;
         $this->logoPath = $logoPath;
-        $this->translator = $translator;
     }
 
     /**
index 6f8c47e17128914b17ae3c2c056937d4df2c70c1..caef2c8dfa0ce1d7c530e2be5f2a888d74ea06e0 100644 (file)
@@ -132,9 +132,9 @@ services:
     wallabag_core.helper.entries_export:
         class: Wallabag\CoreBundle\Helper\EntriesExport
         arguments:
+            - "@translator"
             - '%domain_name%'
             - src/Wallabag/CoreBundle/Resources/public/themes/_global/img/appicon/apple-touch-icon-152.png
-            - "@translator"
 
     wallabag.operator.array.matches:
         class: Wallabag\CoreBundle\Operator\PHP\Matches