summaryrefslogtreecommitdiff
path: root/app/views/helpers/javascript_vars.phtml
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2013-12-25 21:46:24 +0100
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2013-12-25 21:46:24 +0100
commitd24b1e963e208a03f08b1d17ed9f319bd59a36ad (patch)
tree9355fc67ac91eca6d4ae09162a775b54bd6095c1 /app/views/helpers/javascript_vars.phtml
parent7eda2793bbc3210ae37aa66511fd7ad7661c2149 (diff)
Lancer automatiquement le raffraîchissement des flux après une mise à jour de FreshRSS
https://github.com/marienfressinaud/FreshRSS/issues/330
Diffstat (limited to 'app/views/helpers/javascript_vars.phtml')
-rw-r--r--app/views/helpers/javascript_vars.phtml7
1 files changed, 4 insertions, 3 deletions
diff --git a/app/views/helpers/javascript_vars.phtml b/app/views/helpers/javascript_vars.phtml
index 0c1af45fc..d008e2e48 100644
--- a/app/views/helpers/javascript_vars.phtml
+++ b/app/views/helpers/javascript_vars.phtml
@@ -39,7 +39,8 @@
echo 'str_confirmation="', Minz_Translate::t('confirm_action'), '"', ",\n";
- echo 'auto_actualize_feeds=', Minz_Session::param('actualize_feeds', false) ? 'true' : 'false', ";\n";
- if (Minz_Session::param('actualize_feeds', false)) {
- Minz_Session::_param('actualize_feeds');
+ $autoActualise = Minz_Session::param('actualize_feeds', false);
+ echo 'auto_actualize_feeds=', $autoActualise ? 'true' : 'false', ";\n";
+ if ($autoActualise) {
+ Minz_Session::_param('actualize_feeds', false);
}