mirror of
https://github.com/wallabag/wallabag.git
synced 2025-01-10 17:05:26 +00:00
Put default fetching error title in global config
This commit is contained in:
parent
7aba665e48
commit
1c5da417e4
5 changed files with 5 additions and 3 deletions
|
@ -58,6 +58,7 @@ wallabag_core:
|
||||||
cache_lifetime: 10
|
cache_lifetime: 10
|
||||||
action_mark_as_read: 1
|
action_mark_as_read: 1
|
||||||
list_mode: 0
|
list_mode: 0
|
||||||
|
fetching_error_message_title: 'No title found'
|
||||||
fetching_error_message: |
|
fetching_error_message: |
|
||||||
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>.
|
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>.
|
||||||
api_limit_mass_actions: 10
|
api_limit_mass_actions: 10
|
||||||
|
|
|
@ -60,9 +60,6 @@ class EntryController extends Controller
|
||||||
*/
|
*/
|
||||||
private function updateEntry(Entry $entry, $prefixMessage = 'entry_saved')
|
private function updateEntry(Entry $entry, $prefixMessage = 'entry_saved')
|
||||||
{
|
{
|
||||||
// put default title in case of fetching content failed
|
|
||||||
$entry->setTitle('No title found');
|
|
||||||
|
|
||||||
$message = 'flashes.entry.notice.'.$prefixMessage;
|
$message = 'flashes.entry.notice.'.$prefixMessage;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -41,6 +41,8 @@ class Configuration implements ConfigurationInterface
|
||||||
->end()
|
->end()
|
||||||
->scalarNode('fetching_error_message')
|
->scalarNode('fetching_error_message')
|
||||||
->end()
|
->end()
|
||||||
|
->scalarNode('fetching_error_message_title')
|
||||||
|
->end()
|
||||||
->scalarNode('action_mark_as_read')
|
->scalarNode('action_mark_as_read')
|
||||||
->defaultValue(1)
|
->defaultValue(1)
|
||||||
->end()
|
->end()
|
||||||
|
|
|
@ -26,6 +26,7 @@ class WallabagCoreExtension extends Extension
|
||||||
$container->setParameter('wallabag_core.action_mark_as_read', $config['action_mark_as_read']);
|
$container->setParameter('wallabag_core.action_mark_as_read', $config['action_mark_as_read']);
|
||||||
$container->setParameter('wallabag_core.list_mode', $config['list_mode']);
|
$container->setParameter('wallabag_core.list_mode', $config['list_mode']);
|
||||||
$container->setParameter('wallabag_core.fetching_error_message', $config['fetching_error_message']);
|
$container->setParameter('wallabag_core.fetching_error_message', $config['fetching_error_message']);
|
||||||
|
$container->setParameter('wallabag_core.fetching_error_message_title', $config['fetching_error_message_title']);
|
||||||
$container->setParameter('wallabag_core.api_limit_mass_actions', $config['api_limit_mass_actions']);
|
$container->setParameter('wallabag_core.api_limit_mass_actions', $config['api_limit_mass_actions']);
|
||||||
|
|
||||||
$loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
|
$loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
|
||||||
|
|
|
@ -41,6 +41,7 @@ services:
|
||||||
arguments:
|
arguments:
|
||||||
-
|
-
|
||||||
error_message: '%wallabag_core.fetching_error_message%'
|
error_message: '%wallabag_core.fetching_error_message%'
|
||||||
|
error_message_title: '%wallabag_core.fetching_error_message_title%'
|
||||||
- "@wallabag_core.guzzle.http_client"
|
- "@wallabag_core.guzzle.http_client"
|
||||||
- "@wallabag_core.graby.config_builder"
|
- "@wallabag_core.graby.config_builder"
|
||||||
calls:
|
calls:
|
||||||
|
|
Loading…
Reference in a new issue