mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-28 20:47:28 +00:00
call hook showVersionComment() for previous versions, check if comment is set at all
This commit is contained in:
parent
7ec84597eb
commit
6553f7a379
|
@ -626,7 +626,8 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
|
||||||
if($txt) {
|
if($txt) {
|
||||||
echo $txt;
|
echo $txt;
|
||||||
} else {
|
} else {
|
||||||
print "<p style=\"font-style: italic;\">".htmlspecialchars($latestContent->getComment())."</p>";
|
if($latestContent->getComment())
|
||||||
|
print "<p style=\"font-style: italic;\">".htmlspecialchars($latestContent->getComment())."</p>";
|
||||||
}
|
}
|
||||||
print "<ul class=\"actions unstyled\">\n";
|
print "<ul class=\"actions unstyled\">\n";
|
||||||
$attributes = $latestContent->getAttributes();
|
$attributes = $latestContent->getAttributes();
|
||||||
|
@ -1505,8 +1506,13 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
|
||||||
print "<li>".getMLText("uploaded_by")." <a href=\"mailto:".$updatingUser->getEmail()."\">".htmlspecialchars($updatingUser->getFullName())."</a></li>";
|
print "<li>".getMLText("uploaded_by")." <a href=\"mailto:".$updatingUser->getEmail()."\">".htmlspecialchars($updatingUser->getFullName())."</a></li>";
|
||||||
print "<li>".getLongReadableDate($version->getDate())."</li>";
|
print "<li>".getLongReadableDate($version->getDate())."</li>";
|
||||||
print "</ul>\n";
|
print "</ul>\n";
|
||||||
if($version->getComment())
|
$txt = $this->callHook('showVersionComment', $version);
|
||||||
print "<p style=\"font-style: italic;\">".htmlspecialchars($version->getComment())."</p>";
|
if($txt) {
|
||||||
|
echo $txt;
|
||||||
|
} else {
|
||||||
|
if($version->getComment())
|
||||||
|
print "<p style=\"font-style: italic;\">".htmlspecialchars($version->getComment())."</p>";
|
||||||
|
}
|
||||||
print "<ul class=\"actions unstyled\">\n";
|
print "<ul class=\"actions unstyled\">\n";
|
||||||
$attributes = $version->getAttributes();
|
$attributes = $version->getAttributes();
|
||||||
if($attributes) {
|
if($attributes) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user