Regression introduced after 2.3.0-beta [r4217]: broken links to donwload / display blobs.

SVN:trunk[4319]
This commit is contained in:
Denis Flaven
2016-08-10 15:54:04 +00:00
parent 480c2fab04
commit c147062aaa
2 changed files with 3 additions and 3 deletions

View File

@@ -83,7 +83,7 @@ try
$iCacheSec = 31556926; // One year ahead: an inline image cannot change
if (!empty($id) && !empty($sSecret))
{
ormDocument::DownloadDocument($oPage, 'InlineImage', $id, 'contents', 'attachment', 'secret', $sSecret);
ormDocument::DownloadDocument($oPage, 'InlineImage', $id, 'contents', 'inline', 'secret', $sSecret);
$oPage->add_header("Expires: "); // Reset the value set in ajax_page
$oPage->add_header("Cache-Control: no-transform,public,max-age=$iCacheSec,s-maxage=$iCacheSec");
$oPage->add_header("Pragma: cache"); // Reset the value set .... where ?