From: <var...@us...> - 2009-08-05 09:27:58
|
Revision: 7056 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=7056&view=rev Author: vargenau Date: 2009-08-05 09:27:48 +0000 (Wed, 05 Aug 2009) Log Message: ----------- Display "minor edit" for minor edits (like in PageHistory) Modified Paths: -------------- trunk/lib/plugin/RecentChanges.php Modified: trunk/lib/plugin/RecentChanges.php =================================================================== --- trunk/lib/plugin/RecentChanges.php 2009-08-05 09:04:53 UTC (rev 7055) +++ trunk/lib/plugin/RecentChanges.php 2009-08-05 09:27:48 UTC (rev 7056) @@ -463,8 +463,14 @@ $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 @@ $time, ' . . ', $this->authorLink($rev),' ', $this->authorContribs($rev),' ', - $this->summaryAsHTML($rev)); + $this->summaryAsHTML($rev),' ', + $minor_flag); } else { $line->pushContent($linkorname, ' ', $time, ' ', This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |