From 16cbc19a8a79584356e1cb3c9a549de169c908e5 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 23 Jan 2013 12:22:07 +0400 Subject: do not show edit note prompt when article is shown in zoom mode --- include/functions.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/functions.php b/include/functions.php index 0ee058086..62d64e247 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; } -- cgit v1.2.3