From: <var...@us...> - 2011-01-18 08:45:04
|
Revision: 7840 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=7840&view=rev Author: vargenau Date: 2011-01-18 08:44:58 +0000 (Tue, 18 Jan 2011) Log Message: ----------- Add revision (if any) to transclusion title Modified Paths: -------------- trunk/lib/plugin/IncludePage.php Modified: trunk/lib/plugin/IncludePage.php =================================================================== --- trunk/lib/plugin/IncludePage.php 2011-01-17 16:16:15 UTC (rev 7839) +++ trunk/lib/plugin/IncludePage.php 2011-01-18 08:44:58 UTC (rev 7840) @@ -150,11 +150,13 @@ if ($quiet) return $content; - return HTML(HTML::p(array('class' => 'transclusion-title'), - fmt("Included from %s", WikiLink($page))), - - HTML::div(array('class' => 'transclusion'), - false, $content)); + if ($rev) { + $transclusion_title = fmt("Included from %s (revision %d)", WikiLink($page), $rev); + } else { + $transclusion_title = fmt("Included from %s", WikiLink($page)); + } + return HTML(HTML::p(array('class' => 'transclusion-title'), $transclusion_title), + HTML::div(array('class' => 'transclusion'), false, $content)); } /** This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |