diff options
author | Thomas Citharel <tcit@tcit.fr> | 2017-06-01 10:42:19 +0200 |
---|---|---|
committer | Thomas Citharel <tcit@tcit.fr> | 2017-06-06 15:36:21 +0200 |
commit | be9d693e74e41fdcdb18bf80aa1aff614154bcce (patch) | |
tree | 2e74f165061d45294a6732a06cfe61ebeeb67535 | |
parent | 6ed2627bb35561e32d702fbe67247349dd67453e (diff) | |
download | wallabag-be9d693e74e41fdcdb18bf80aa1aff614154bcce.tar.gz wallabag-be9d693e74e41fdcdb18bf80aa1aff614154bcce.tar.zst wallabag-be9d693e74e41fdcdb18bf80aa1aff614154bcce.zip |
remove craueconfig domain name setting and add a proper one in parameters
18 files changed, 8 insertions, 14 deletions
diff --git a/app/Resources/CraueConfigBundle/translations/CraueConfigBundle.da.yml b/app/Resources/CraueConfigBundle/translations/CraueConfigBundle.da.yml index 20e938f5..5475e571 100644 --- a/app/Resources/CraueConfigBundle/translations/CraueConfigBundle.da.yml +++ b/app/Resources/CraueConfigBundle/translations/CraueConfigBundle.da.yml | |||
@@ -20,7 +20,6 @@ share_twitter: Aktiver deling gennem Twitter | |||
20 | share_unmark: Aktiver deling gennem Unmark.it | 20 | share_unmark: Aktiver deling gennem Unmark.it |
21 | show_printlink: Vis et link til print-indhold | 21 | show_printlink: Vis et link til print-indhold |
22 | wallabag_support_url: Support-URL for wallabag | 22 | wallabag_support_url: Support-URL for wallabag |
23 | wallabag_url: URL for *sin* wallabag-installation | ||
24 | entry: "artikel" | 23 | entry: "artikel" |
25 | export: "eksport" | 24 | export: "eksport" |
26 | import: "import" | 25 | import: "import" |
diff --git a/app/Resources/CraueConfigBundle/translations/CraueConfigBundle.de.yml b/app/Resources/CraueConfigBundle/translations/CraueConfigBundle.de.yml index 526d41bc..f57db303 100644 --- a/app/Resources/CraueConfigBundle/translations/CraueConfigBundle.de.yml +++ b/app/Resources/CraueConfigBundle/translations/CraueConfigBundle.de.yml | |||
@@ -20,7 +20,6 @@ share_twitter: Teilen zu Twitter aktiveren | |||
20 | share_unmark: Teilen zu Unmark.it aktiveren | 20 | share_unmark: Teilen zu Unmark.it aktiveren |
21 | show_printlink: Link anzeigen, um den Inhalt auszudrucken | 21 | show_printlink: Link anzeigen, um den Inhalt auszudrucken |
22 | wallabag_support_url: Support-URL für wallabag | 22 | wallabag_support_url: Support-URL für wallabag |
23 | wallabag_url: URL von *deiner* wallabag-Instanz | ||
24 | entry: "Artikel" | 23 | entry: "Artikel" |
25 | export: "Export" | 24 | export: "Export" |
26 | import: "Import" | 25 | import: "Import" |
diff --git a/app/Resources/CraueConfigBundle/translations/CraueConfigBundle.en.yml b/app/Resources/CraueConfigBundle/translations/CraueConfigBundle.en.yml index 3c0037f3..1e4f4668 100644 --- a/app/Resources/CraueConfigBundle/translations/CraueConfigBundle.en.yml +++ b/app/Resources/CraueConfigBundle/translations/CraueConfigBundle.en.yml | |||
@@ -20,7 +20,6 @@ share_twitter: Enable share to Twitter | |||
20 | share_unmark: Enable share to Unmark.it | 20 | share_unmark: Enable share to Unmark.it |
21 | show_printlink: Display a link to print content | 21 | show_printlink: Display a link to print content |
22 | wallabag_support_url: Support URL for wallabag | 22 | wallabag_support_url: Support URL for wallabag |
23 | wallabag_url: URL of *your* wallabag instance | ||
24 | entry: "article" | 23 | entry: "article" |
25 | export: "export" | 24 | export: "export" |
26 | import: "import" | 25 | import: "import" |
diff --git a/app/Resources/CraueConfigBundle/translations/CraueConfigBundle.es.yml b/app/Resources/CraueConfigBundle/translations/CraueConfigBundle.es.yml index 99869669..46ed4040 100644 --- a/app/Resources/CraueConfigBundle/translations/CraueConfigBundle.es.yml +++ b/app/Resources/CraueConfigBundle/translations/CraueConfigBundle.es.yml | |||
@@ -20,7 +20,6 @@ share_twitter: Activar compartir con Twitter | |||
20 | share_unmark: Activar compartir con Unmark.it | 20 | share_unmark: Activar compartir con Unmark.it |
21 | show_printlink: Mostrar un enlace para imprimir contenido | 21 | show_printlink: Mostrar un enlace para imprimir contenido |
22 | wallabag_support_url: URL de soporte de wallabag | 22 | wallabag_support_url: URL de soporte de wallabag |
23 | wallabag_url: URL de *tu* instancia de wallabag | ||
24 | entry: "artículo" | 23 | entry: "artículo" |
25 | export: "exportar" | 24 | export: "exportar" |
26 | import: "importar" | 25 | import: "importar" |
diff --git a/app/Resources/CraueConfigBundle/translations/CraueConfigBundle.fa.yml b/app/Resources/CraueConfigBundle/translations/CraueConfigBundle.fa.yml index 2e1307e5..f8da4acf 100644 --- a/app/Resources/CraueConfigBundle/translations/CraueConfigBundle.fa.yml +++ b/app/Resources/CraueConfigBundle/translations/CraueConfigBundle.fa.yml | |||
@@ -20,7 +20,6 @@ share_twitter: فعالسازی همرسانی به Twitter | |||
20 | share_unmark: فعالسازی همرسانی به Unmark.it | 20 | share_unmark: فعالسازی همرسانی به Unmark.it |
21 | show_printlink: نمایش پیوندی برای چاپ مطلب | 21 | show_printlink: نمایش پیوندی برای چاپ مطلب |
22 | wallabag_support_url: نشانی صفحهٔ پشتیبانی wallabag | 22 | wallabag_support_url: نشانی صفحهٔ پشتیبانی wallabag |
23 | wallabag_url: نشانی صفحهٔ wallabag *شما* | ||
24 | entry: "مقاله" | 23 | entry: "مقاله" |
25 | export: "برونسپاری" | 24 | export: "برونسپاری" |
26 | import: "درونریزی" | 25 | import: "درونریزی" |
diff --git a/app/Resources/CraueConfigBundle/translations/CraueConfigBundle.fr.yml b/app/Resources/CraueConfigBundle/translations/CraueConfigBundle.fr.yml index 454053ad..a79409b4 100644 --- a/app/Resources/CraueConfigBundle/translations/CraueConfigBundle.fr.yml +++ b/app/Resources/CraueConfigBundle/translations/CraueConfigBundle.fr.yml | |||
@@ -20,7 +20,6 @@ share_twitter: Activer le partage vers Twitter | |||
20 | share_unmark: Activer le partage vers Unmark.it | 20 | share_unmark: Activer le partage vers Unmark.it |
21 | show_printlink: Afficher un lien pour imprimer | 21 | show_printlink: Afficher un lien pour imprimer |
22 | wallabag_support_url: URL de support de wallabag | 22 | wallabag_support_url: URL de support de wallabag |
23 | wallabag_url: URL de *votre* instance de wallabag | ||
24 | entry: "article" | 23 | entry: "article" |
25 | export: "export" | 24 | export: "export" |
26 | import: "import" | 25 | import: "import" |
diff --git a/app/Resources/CraueConfigBundle/translations/CraueConfigBundle.it.yml b/app/Resources/CraueConfigBundle/translations/CraueConfigBundle.it.yml index 4dbd2ff8..dd4def4b 100644 --- a/app/Resources/CraueConfigBundle/translations/CraueConfigBundle.it.yml +++ b/app/Resources/CraueConfigBundle/translations/CraueConfigBundle.it.yml | |||
@@ -20,7 +20,6 @@ share_twitter: Abilita la condivisione con Twitter | |||
20 | share_unmark: Abilita la condivisione con Unmark.it | 20 | share_unmark: Abilita la condivisione con Unmark.it |
21 | show_printlink: Mostra un collegamento per stampare il contenuto | 21 | show_printlink: Mostra un collegamento per stampare il contenuto |
22 | wallabag_support_url: URL di supporto per wallabag | 22 | wallabag_support_url: URL di supporto per wallabag |
23 | wallabag_url: URL della *tua* installazione di wallabag | ||
24 | entry: "contenuto" | 23 | entry: "contenuto" |
25 | export: "esporta" | 24 | export: "esporta" |
26 | import: "importa" | 25 | import: "importa" |
diff --git a/app/Resources/CraueConfigBundle/translations/CraueConfigBundle.oc.yml b/app/Resources/CraueConfigBundle/translations/CraueConfigBundle.oc.yml index 00c06638..66d9ae26 100644 --- a/app/Resources/CraueConfigBundle/translations/CraueConfigBundle.oc.yml +++ b/app/Resources/CraueConfigBundle/translations/CraueConfigBundle.oc.yml | |||
@@ -20,7 +20,6 @@ share_twitter: Activar lo partatge cap a Twitter | |||
20 | share_unmark: Activar lo partatge cap a Unmark.it | 20 | share_unmark: Activar lo partatge cap a Unmark.it |
21 | show_printlink: Afichar un ligam per imprimir | 21 | show_printlink: Afichar un ligam per imprimir |
22 | wallabag_support_url: URL d'assisténcia de wallabag | 22 | wallabag_support_url: URL d'assisténcia de wallabag |
23 | wallabag_url: URL de *vòstra* instància de wallabag | ||
24 | entry: "article" | 23 | entry: "article" |
25 | export: "expòrt" | 24 | export: "expòrt" |
26 | import: "impòrt" | 25 | import: "impòrt" |
diff --git a/app/Resources/CraueConfigBundle/translations/CraueConfigBundle.pl.yml b/app/Resources/CraueConfigBundle/translations/CraueConfigBundle.pl.yml index ada11b3a..04ad4fd3 100644 --- a/app/Resources/CraueConfigBundle/translations/CraueConfigBundle.pl.yml +++ b/app/Resources/CraueConfigBundle/translations/CraueConfigBundle.pl.yml | |||
@@ -20,7 +20,6 @@ share_twitter: Włącz udostępnianie dla Twitter | |||
20 | share_unmark: Włącz udostępnianie dla Unmark.it | 20 | share_unmark: Włącz udostępnianie dla Unmark.it |
21 | show_printlink: Pokaż link do wydrukowania zawartości | 21 | show_printlink: Pokaż link do wydrukowania zawartości |
22 | wallabag_support_url: Adres URL wsparcia dla wallabag | 22 | wallabag_support_url: Adres URL wsparcia dla wallabag |
23 | wallabag_url: Adres *twojej* instacji wallabag | ||
24 | entry: "artykuł" | 23 | entry: "artykuł" |
25 | export: "eksport" | 24 | export: "eksport" |
26 | import: "import" | 25 | import: "import" |
diff --git a/app/Resources/CraueConfigBundle/translations/CraueConfigBundle.pt.yml b/app/Resources/CraueConfigBundle/translations/CraueConfigBundle.pt.yml index 59af9610..77e22b37 100644 --- a/app/Resources/CraueConfigBundle/translations/CraueConfigBundle.pt.yml +++ b/app/Resources/CraueConfigBundle/translations/CraueConfigBundle.pt.yml | |||
@@ -20,7 +20,6 @@ share_twitter: Habilitar compartilhamento para o Twitter | |||
20 | share_unmark: Habilitar compartilhamento para o Unmark.it | 20 | share_unmark: Habilitar compartilhamento para o Unmark.it |
21 | show_printlink: Mostrar um link para imprimir o conteúdo | 21 | show_printlink: Mostrar um link para imprimir o conteúdo |
22 | wallabag_support_url: URL de Suporte do wallabag | 22 | wallabag_support_url: URL de Suporte do wallabag |
23 | wallabag_url: URL de *sua* instância do wallabag | ||
24 | entry: "artigo" | 23 | entry: "artigo" |
25 | export: "exportar" | 24 | export: "exportar" |
26 | import: "importar" | 25 | import: "importar" |
diff --git a/app/Resources/CraueConfigBundle/translations/CraueConfigBundle.ro.yml b/app/Resources/CraueConfigBundle/translations/CraueConfigBundle.ro.yml index 104e37c6..1b4bfb5b 100644 --- a/app/Resources/CraueConfigBundle/translations/CraueConfigBundle.ro.yml +++ b/app/Resources/CraueConfigBundle/translations/CraueConfigBundle.ro.yml | |||
@@ -20,7 +20,6 @@ share_twitter: Permite share către Twitter | |||
20 | share_unmark: Permite share către Unmark.it | 20 | share_unmark: Permite share către Unmark.it |
21 | show_printlink: Afișează un link pentru a printa content-ul | 21 | show_printlink: Afișează un link pentru a printa content-ul |
22 | wallabag_support_url: URL-ul de suport pentru wallabag | 22 | wallabag_support_url: URL-ul de suport pentru wallabag |
23 | wallabag_url: URL-ul instanței tale wallabag | ||
24 | entry: "alticol" | 23 | entry: "alticol" |
25 | export: "exportă" | 24 | export: "exportă" |
26 | import: "importă" | 25 | import: "importă" |
diff --git a/app/config/parameters.yml.dist b/app/config/parameters.yml.dist index afcee039..c00ffb0e 100644 --- a/app/config/parameters.yml.dist +++ b/app/config/parameters.yml.dist | |||
@@ -23,6 +23,8 @@ parameters: | |||
23 | # with PostgreSQL and SQLite, you must set "utf8" | 23 | # with PostgreSQL and SQLite, you must set "utf8" |
24 | database_charset: utf8mb4 | 24 | database_charset: utf8mb4 |
25 | 25 | ||
26 | domain_name: wallabag.me | ||
27 | |||
26 | mailer_transport: smtp | 28 | mailer_transport: smtp |
27 | mailer_host: 127.0.0.1 | 29 | mailer_host: 127.0.0.1 |
28 | mailer_user: ~ | 30 | mailer_user: ~ |
diff --git a/app/config/wallabag.yml b/app/config/wallabag.yml index d8c593c6..65bac1b4 100644 --- a/app/config/wallabag.yml +++ b/app/config/wallabag.yml | |||
@@ -26,6 +26,7 @@ wallabag_core: | |||
26 | fetching_error_message: | | 26 | fetching_error_message: | |
27 | wallabag can't retrieve contents for this article. Please <a href="http://doc.wallabag.org/en/user/errors_during_fetching.html#how-can-i-help-to-fix-that">troubleshoot this issue</a>. | 27 | wallabag can't retrieve contents for this article. Please <a href="http://doc.wallabag.org/en/user/errors_during_fetching.html#how-can-i-help-to-fix-that">troubleshoot this issue</a>. |
28 | api_limit_mass_actions: 10 | 28 | api_limit_mass_actions: 10 |
29 | domain_name: '%domain_name%' | ||
29 | default_internal_settings: | 30 | default_internal_settings: |
30 | - | 31 | - |
31 | name: share_public | 32 | name: share_public |
diff --git a/src/Wallabag/CoreBundle/Controller/ConfigController.php b/src/Wallabag/CoreBundle/Controller/ConfigController.php index 0e61c642..89d27425 100644 --- a/src/Wallabag/CoreBundle/Controller/ConfigController.php +++ b/src/Wallabag/CoreBundle/Controller/ConfigController.php | |||
@@ -151,7 +151,7 @@ class ConfigController extends Controller | |||
151 | 'token' => $config->getRssToken(), | 151 | 'token' => $config->getRssToken(), |
152 | ], | 152 | ], |
153 | 'twofactor_auth' => $this->getParameter('twofactor_auth'), | 153 | 'twofactor_auth' => $this->getParameter('twofactor_auth'), |
154 | 'wallabag_url' => $this->get('craue_config')->get('wallabag_url'), | 154 | 'wallabag_url' => $this->getParameter('domain_name'), |
155 | 'enabled_users' => $this->getDoctrine() | 155 | 'enabled_users' => $this->getDoctrine() |
156 | ->getRepository('WallabagUserBundle:User') | 156 | ->getRepository('WallabagUserBundle:User') |
157 | ->getSumEnabledUsers(), | 157 | ->getSumEnabledUsers(), |
diff --git a/src/Wallabag/CoreBundle/DependencyInjection/Configuration.php b/src/Wallabag/CoreBundle/DependencyInjection/Configuration.php index 33df92d3..37f7c761 100644 --- a/src/Wallabag/CoreBundle/DependencyInjection/Configuration.php +++ b/src/Wallabag/CoreBundle/DependencyInjection/Configuration.php | |||
@@ -62,6 +62,7 @@ class Configuration implements ConfigurationInterface | |||
62 | ->end() | 62 | ->end() |
63 | ->end() | 63 | ->end() |
64 | ->end() | 64 | ->end() |
65 | ->scalarNode('domain_name') | ||
65 | ->end() | 66 | ->end() |
66 | ->end() | 67 | ->end() |
67 | ; | 68 | ; |
diff --git a/src/Wallabag/CoreBundle/DependencyInjection/WallabagCoreExtension.php b/src/Wallabag/CoreBundle/DependencyInjection/WallabagCoreExtension.php index b4d8a386..d0b4351e 100644 --- a/src/Wallabag/CoreBundle/DependencyInjection/WallabagCoreExtension.php +++ b/src/Wallabag/CoreBundle/DependencyInjection/WallabagCoreExtension.php | |||
@@ -29,6 +29,7 @@ class WallabagCoreExtension extends Extension | |||
29 | $container->setParameter('wallabag_core.fetching_error_message_title', $config['fetching_error_message_title']); | 29 | $container->setParameter('wallabag_core.fetching_error_message_title', $config['fetching_error_message_title']); |
30 | $container->setParameter('wallabag_core.api_limit_mass_actions', $config['api_limit_mass_actions']); | 30 | $container->setParameter('wallabag_core.api_limit_mass_actions', $config['api_limit_mass_actions']); |
31 | $container->setParameter('wallabag_core.default_internal_settings', $config['default_internal_settings']); | 31 | $container->setParameter('wallabag_core.default_internal_settings', $config['default_internal_settings']); |
32 | $container->setParameter('wallabag_core.domain_name', $config['domain_name']); | ||
32 | 33 | ||
33 | $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); | 34 | $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
34 | $loader->load('services.yml'); | 35 | $loader->load('services.yml'); |
diff --git a/src/Wallabag/CoreBundle/Resources/config/services.yml b/src/Wallabag/CoreBundle/Resources/config/services.yml index a9b0d2d5..a82f36ce 100644 --- a/src/Wallabag/CoreBundle/Resources/config/services.yml +++ b/src/Wallabag/CoreBundle/Resources/config/services.yml | |||
@@ -122,7 +122,7 @@ services: | |||
122 | wallabag_core.helper.entries_export: | 122 | wallabag_core.helper.entries_export: |
123 | class: Wallabag\CoreBundle\Helper\EntriesExport | 123 | class: Wallabag\CoreBundle\Helper\EntriesExport |
124 | arguments: | 124 | arguments: |
125 | - '@=service(''craue_config'').get(''wallabag_url'')' | 125 | - '%domain_name%' |
126 | - src/Wallabag/CoreBundle/Resources/public/themes/_global/img/appicon/apple-touch-icon-152.png | 126 | - src/Wallabag/CoreBundle/Resources/public/themes/_global/img/appicon/apple-touch-icon-152.png |
127 | 127 | ||
128 | wallabag.operator.array.matches: | 128 | wallabag.operator.array.matches: |
diff --git a/src/Wallabag/UserBundle/Resources/config/services.yml b/src/Wallabag/UserBundle/Resources/config/services.yml index 72f6f12c..bfba6010 100644 --- a/src/Wallabag/UserBundle/Resources/config/services.yml +++ b/src/Wallabag/UserBundle/Resources/config/services.yml | |||
@@ -7,7 +7,7 @@ services: | |||
7 | - "%scheb_two_factor.email.sender_email%" | 7 | - "%scheb_two_factor.email.sender_email%" |
8 | - "%scheb_two_factor.email.sender_name%" | 8 | - "%scheb_two_factor.email.sender_name%" |
9 | - '@=service(''craue_config'').get(''wallabag_support_url'')' | 9 | - '@=service(''craue_config'').get(''wallabag_support_url'')' |
10 | - '@=service(''craue_config'').get(''wallabag_url'')' | 10 | - '%domain_name%' |
11 | 11 | ||
12 | wallabag_user.password_resetting: | 12 | wallabag_user.password_resetting: |
13 | class: Wallabag\UserBundle\EventListener\PasswordResettingListener | 13 | class: Wallabag\UserBundle\EventListener\PasswordResettingListener |