From 86e7b0a13fe7183fc773e1cdce23bd3e26c7ff2f Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Wed, 4 Apr 2018 21:47:40 +0200 Subject: [PATCH] add hook showVersionComment --- views/bootstrap/class.ViewDocument.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/views/bootstrap/class.ViewDocument.php b/views/bootstrap/class.ViewDocument.php index 648909c67..93b2e4df2 100644 --- a/views/bootstrap/class.ViewDocument.php +++ b/views/bootstrap/class.ViewDocument.php @@ -614,7 +614,12 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style { print "
  • ".getLongReadableDate($latestContent->getDate())."
  • "; print "\n"; - print "

    ".htmlspecialchars($latestContent->getComment())."

    "; + $txt = $this->callHook('showVersionComment', $latestContent); + if($txt) { + echo $txt; + } else { + print "

    ".htmlspecialchars($latestContent->getComment())."

    "; + } print "