show header of additional preview only if hook returns a text

This commit is contained in:
Uwe Steinmann 2021-12-17 21:46:28 +01:00
parent 7e34fa0663
commit 4efc8226c8

View File

@ -570,8 +570,10 @@ $(document).ready( function() {
break; break;
default: default:
$txt = $this->callHook('additionalDocumentPreview', $latestContent); $txt = $this->callHook('additionalDocumentPreview', $latestContent);
if(is_string($txt)) if(is_string($txt)) {
$this->contentHeading(getMLText("preview"));
echo $txt; echo $txt;
}
break; break;
} }
} }