From: Andrew Dolgov Date: Wed, 23 Jan 2013 08:22:07 +0000 (+0400) Subject: do not show edit note prompt when article is shown in zoom mode X-Git-Tag: 1.7.0~31 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=16cbc19a8a79584356e1cb3c9a549de169c908e5;p=tt-rss.git do not show edit note prompt when article is shown in zoom mode --- diff --git a/include/functions.php b/include/functions.php index 0ee05808..62d64e24 100644 --- a/include/functions.php +++ b/include/functions.php @@ -3156,7 +3156,7 @@ $rv['content'] .= "
"; if ($line['note']) { - $rv['content'] .= format_article_note($id, $line['note']); + $rv['content'] .= format_article_note($id, $line['note'], !$zoom_mode); } $rv['content'] .= "
"; @@ -3444,11 +3444,11 @@ } - function format_article_note($id, $note) { + function format_article_note($id, $note, $allow_edit = true) { $str = "
". - __('(edit note)')."
$note
"; + ($allow_edit ? __('(edit note)') : "")."$note"; return $str; }