mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-13 21:21:27 +00:00
show header of additional preview only if hook returns a text
This commit is contained in:
parent
7e34fa0663
commit
4efc8226c8
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user