add hook showVersionComment

This commit is contained in:
Uwe Steinmann 2018-04-04 21:47:40 +02:00
parent 6fb4b9b545
commit 86e7b0a13f

View File

@ -614,7 +614,12 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
print "<li>".getLongReadableDate($latestContent->getDate())."</li>";
print "</ul>\n";
$txt = $this->callHook('showVersionComment', $latestContent);
if($txt) {
echo $txt;
} else {
print "<p style=\"font-style: italic;\">".htmlspecialchars($latestContent->getComment())."</p>";
}
print "<ul class=\"actions unstyled\">\n";
$attributes = $latestContent->getAttributes();
if($attributes) {