A free, self-hostable news aggregator…
Fix issue #128 : Shaarli seulement si loggué
Marien Fressinaud35a7f63dbb53
diff --git a/app/views/helpers/view/normal_view.phtml b/app/views/helpers/view/normal_view.phtmlindex 05b2a08e2..fb4e60cf6 100644--- a/app/views/helpers/view/normal_view.phtml+++ b/app/views/helpers/view/normal_view.phtml@@ -90,7 +90,7 @@ if (isset ($this->entryPaginator) && !$this->entryPaginator->isEmpty ()) {<li class="item"><a href="mailto:?subject=<?php echo $item->title (); ?>&body=J'ai trouvé cet article intéressant, tu peux le lire à cette adresse : <?php echo urlencode($item->link ()); ?>"><?php echo Translate::t ('by_email'); ?></a></li><?php$shaarli = $this->conf->urlShaarli ();- if ($shaarli) {+ if ((!login_is_conf ($this->conf) || is_logged ()) && $shaarli) {?><li class="item"><a target="_blank" href="<?php echo $shaarli . '?post=' . urlencode($item->link ()) . '&title=' . urlencode ($item->title ()) . '&source=bookmarklet'; ?>"><?php echo Translate::t ('on_shaarli'); ?></a></li><?php } ?>