From 2e93a01d70f51ac4e3b0fa24a5463caa1bcc33f4 Mon Sep 17 00:00:00 2001 From: vargenau Date: Wed, 5 Aug 2009 09:27:48 +0000 Subject: [PATCH] Display "minor edit" for minor edits (like in PageHistory) git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@7056 96ab9672-09ca-45d6-a79d-3d69d39ca109 --- lib/plugin/RecentChanges.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/lib/plugin/RecentChanges.php b/lib/plugin/RecentChanges.php index 8bdc72cef..58f80e75a 100644 --- a/lib/plugin/RecentChanges.php +++ b/lib/plugin/RecentChanges.php @@ -463,8 +463,14 @@ extends _RecentChanges_Formatter $class = 'rc-' . $this->importance($rev); $time = $this->time($rev); - if (! $rev->get('is_minor_edit')) + if ($rev->get('is_minor_edit')) { + $minor_flag = HTML(" ", + HTML::span(array('class' => 'pageinfo-minoredit'), + "(" . _("minor edit") . ")")); + } else { $time = HTML::span(array('class' => 'pageinfo-majoredit'), $time); + $minor_flag = ''; + } $line = HTML::li(array('class' => $class)); @@ -488,7 +494,8 @@ extends _RecentChanges_Formatter $time, ' . . ', $this->authorLink($rev),' ', $this->authorContribs($rev),' ', - $this->summaryAsHTML($rev)); + $this->summaryAsHTML($rev),' ', + $minor_flag); } else { $line->pushContent($linkorname, ' ', $time, ' ', -- 2.45.0