Bugfix on empty feeds detection
This commit is contained in:
parent
415a7a6c58
commit
466bb0a51a
@ -374,7 +374,12 @@ Router\get_action('feeds', function() {
|
|||||||
$listing[] = '"'.$feed['title'].'"';
|
$listing[] = '"'.$feed['title'].'"';
|
||||||
}
|
}
|
||||||
|
|
||||||
$message = t('The following feeds are empty, there is maybe an error: %s', implode(', ', $listing));
|
$message = t(
|
||||||
|
'There is %d empty feeds, there is maybe an error: %s...',
|
||||||
|
count($empty_feeds),
|
||||||
|
implode(', ', array_slice($listing, 0, 5))
|
||||||
|
);
|
||||||
|
|
||||||
Session\flash_error($message);
|
Session\flash_error($message);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3,8 +3,8 @@
|
|||||||
return array(
|
return array(
|
||||||
'No item' => 'Žádný článěk',
|
'No item' => 'Žádný článěk',
|
||||||
'items' => 'články',
|
'items' => 'články',
|
||||||
'The following feeds are empty, there is maybe an error: %s' =>
|
'There is %d empty feeds, there is maybe an error: %s...' =>
|
||||||
'Následující zdroje jsou prázdně, možná je tu chyba: %s',
|
'K dispozici je %d prázdné kanály, je možná chyba: %s...',
|
||||||
'Items per page' => 'Článků na stránku',
|
'Items per page' => 'Článků na stránku',
|
||||||
'Previous page' => 'Předchozí stránka',
|
'Previous page' => 'Předchozí stránka',
|
||||||
'Next page' => 'Další stránka',
|
'Next page' => 'Další stránka',
|
||||||
|
@ -3,8 +3,8 @@
|
|||||||
return array(
|
return array(
|
||||||
'No item' => 'Aucun élément',
|
'No item' => 'Aucun élément',
|
||||||
'items' => 'éléments',
|
'items' => 'éléments',
|
||||||
'The following feeds are empty, there is maybe an error: %s' =>
|
'There is %d empty feeds, there is maybe an error: %s...' =>
|
||||||
'Les abonnements suivants sont vides, il y a peut-être une erreur : %s',
|
'Il y a %d abonnements vides, il y a peut-être un problème : %s...',
|
||||||
'Items per page' => 'Nombre d\'éléments par page',
|
'Items per page' => 'Nombre d\'éléments par page',
|
||||||
'Previous page' => 'Page précédente',
|
'Previous page' => 'Page précédente',
|
||||||
'Next page' => 'Page suivante',
|
'Next page' => 'Page suivante',
|
||||||
|
@ -256,7 +256,7 @@ function get_empty_feeds()
|
|||||||
->columns('feeds.id', 'feeds.title', 'COUNT(items.id) AS nb_items')
|
->columns('feeds.id', 'feeds.title', 'COUNT(items.id) AS nb_items')
|
||||||
->join('items', 'feed_id', 'id')
|
->join('items', 'feed_id', 'id')
|
||||||
->isNull('feeds.last_checked')
|
->isNull('feeds.last_checked')
|
||||||
->groupBy('items.feed_id')
|
->groupBy('feeds.id')
|
||||||
->findAll();
|
->findAll();
|
||||||
|
|
||||||
foreach ($feeds as $key => &$feed) {
|
foreach ($feeds as $key => &$feed) {
|
||||||
|
Loading…
Reference in New Issue
Block a user