summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2014-09-19 18:47:49 +0200
committerGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2014-09-19 18:47:49 +0200
commit07d123f1aa09afc79c322b2364132981f5285ac1 (patch)
treeeb3c52a9a0afa6ade2fe95ad47941af9a2d2db1a /app
parent635ea04d52b3078e6a76c64072cf86d60b6c1561 (diff)
Load $nb/2 articles when reading view
Fix https://github.com/marienfressinaud/FreshRSS/commit/7d5e57b35b4eca07417c296c156edb3b88eef90b See https://github.com/marienfressinaud/FreshRSS/issues/559
Diffstat (limited to 'app')
-rwxr-xr-xapp/Controllers/indexController.php2
-rw-r--r--app/i18n/en.php2
-rw-r--r--app/i18n/fr.php2
-rw-r--r--app/views/configure/reading.phtml4
4 files changed, 4 insertions, 6 deletions
diff --git a/app/Controllers/indexController.php b/app/Controllers/indexController.php
index b69c09127..bc03f1916 100755
--- a/app/Controllers/indexController.php
+++ b/app/Controllers/indexController.php
@@ -84,7 +84,7 @@ class FreshRSS_index_Controller extends Minz_ActionController {
$first = Minz_Request::param ('next', '');
$ajax_request = Minz_Request::param('ajax', false);
- if ($ajax_request == 1 && $this->view->conf->display_posts) {
+ if ($output === 'reader') {
$nb = max(1, round($nb / 2));
}
diff --git a/app/i18n/en.php b/app/i18n/en.php
index 82c853255..4c6ce6eab 100644
--- a/app/i18n/en.php
+++ b/app/i18n/en.php
@@ -276,7 +276,7 @@ return array (
'reading_configuration' => 'Reading',
'display_configuration' => 'Display',
'articles_per_page' => 'Number of articles per page',
- 'number_divided_when_unfolded' => 'Divided by 2 during loading of unfolded articles.',
+ 'number_divided_when_reader' => 'Divided by 2 in the reading view.',
'default_view' => 'Default view',
'articles_to_display' => 'Articles to display',
'sort_order' => 'Sort order',
diff --git a/app/i18n/fr.php b/app/i18n/fr.php
index b5ab32dae..889bdd173 100644
--- a/app/i18n/fr.php
+++ b/app/i18n/fr.php
@@ -276,7 +276,7 @@ return array (
'reading_configuration' => 'Lecture',
'display_configuration' => 'Affichage',
'articles_per_page' => 'Nombre d’articles par page',
- 'number_divided_when_unfolded' => 'Divisé par 2 lors du chargement d’articles dépliés.',
+ 'number_divided_when_reader' => 'Divisé par 2 dans la vue de lecture.',
'default_view' => 'Vue par défaut',
'articles_to_display' => 'Articles à afficher',
'sort_order' => 'Ordre de tri',
diff --git a/app/views/configure/reading.phtml b/app/views/configure/reading.phtml
index 86d816eb3..8b2da2a28 100644
--- a/app/views/configure/reading.phtml
+++ b/app/views/configure/reading.phtml
@@ -10,9 +10,7 @@
<label class="group-name" for="posts_per_page"><?php echo Minz_Translate::t ('articles_per_page'); ?></label>
<div class="group-controls">
<input type="number" id="posts_per_page" name="posts_per_page" value="<?php echo $this->conf->posts_per_page; ?>" min="5" max="50" />
- <?php if ($this->conf->display_posts) { ?>
- <?php echo _i('help'); ?> <?php echo _t('number_divided_when_unfolded'); ?>
- <?php } ?>
+ <?php echo _i('help'); ?> <?php echo _t('number_divided_when_reader'); ?>
</div>
</div>