summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2014-01-03 14:22:13 +0100
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2014-01-03 14:22:13 +0100
commit69c70070a5b4954f8ef2bffc068c473a08a7b2c2 (patch)
tree87f1283ae4e32bcb912e7c5fe3756d2c771d4c70
parent4640dd934b4cfe43d67abdf05e27d279953592af (diff)
Bug adresses de partage
https://github.com/marienfressinaud/FreshRSS/pull/340
-rw-r--r--app/views/helpers/view/normal_view.phtml12
1 files changed, 9 insertions, 3 deletions
diff --git a/app/views/helpers/view/normal_view.phtml b/app/views/helpers/view/normal_view.phtml
index ce036e281..5e46f3c8e 100644
--- a/app/views/helpers/view/normal_view.phtml
+++ b/app/views/helpers/view/normal_view.phtml
@@ -7,9 +7,15 @@ if (!empty($this->entries)) {
$display_today = true;
$display_yesterday = true;
$display_others = true;
- $shaarli = $this->loginOk && $this->conf->sharing ('shaarli');
- $poche = $this->loginOk && $this->conf->sharing ('poche');
- $diaspora = $this->loginOk && $this->conf->sharing ('diaspora');
+ if ($this->loginOk) {
+ $shaarli = $this->conf->sharing ('shaarli');
+ $poche = $this->conf->sharing ('poche');
+ $diaspora = $this->conf->sharing ('diaspora');
+ } else {
+ $shaarli = '';
+ $poche = '';
+ $diaspora = '';
+ }
$twitter = $this->conf->sharing ('twitter');
$google_plus = $this->conf->sharing ('g+');
$facebook = $this->conf->sharing ('facebook');