Browse Source

Corrige bug partage Shaarli, Poche et D*

Marien Fressinaud 12 years ago
parent
commit
7d475297ce
1 changed files with 6 additions and 6 deletions
  1. 6 6
      app/views/helpers/view/normal_view.phtml

+ 6 - 6
app/views/helpers/view/normal_view.phtml

@@ -14,9 +14,9 @@ if (isset ($this->entryPaginator) && !$this->entryPaginator->isEmpty ()) {
 		$display_others = true;
 
 		$logged = !login_is_conf ($this->conf) || is_logged ();
-		$shaarli = $logged && $this->conf->sharing ('shaarli');
-		$poche = $logged && $this->conf->sharing ('poche');
-		$diaspora = $logged && $this->conf->sharing ('diaspora');
+		$shaarli = $this->conf->sharing ('shaarli');
+		$poche = $this->conf->sharing ('poche');
+		$diaspora = $this->conf->sharing ('diaspora');
 		$twitter = $this->conf->sharing ('twitter');
 		$google_plus = $this->conf->sharing ('g+');
 		$facebook = $this->conf->sharing ('facebook');
@@ -114,19 +114,19 @@ if (isset ($this->entryPaginator) && !$this->entryPaginator->isEmpty ()) {
 
 						<ul class="dropdown-menu">
 							<li class="dropdown-close"><a href="#close">❌</a></li>
-							<?php if ($shaarli) { ?>
+							<?php if ($logged && $shaarli) { ?>
 							<li class="item">
 								<a target="_blank" href="<?php echo $shaarli . '?post=' . $link . '&amp;title=' . $title . '&amp;source=FreshRSS'; ?>">
 									<?php echo Translate::t ('shaarli'); ?>
 								</a>
 							</li>
-							<?php } if ($poche) { ?>
+							<?php } if ($logged && $poche) { ?>
 							<li class="item">
 								<a target="_blank" href="<?php echo $poche . '?action=add&amp;url=' . base64_encode (urldecode($link)); ?>">
 									<?php echo Translate::t ('poche'); ?>
 								</a>
 							</li>
-							<?php } if ($diaspora) { ?>
+							<?php } if ($logged && $diaspora) { ?>
 							<li class="item">
 								<a target="_blank" href="<?php echo $diaspora . '/bookmarklet?url=' . $link . '&amp;title=' . $title; ?>">
 									<?php echo Translate::t ('diaspora'); ?>