Commit d9bc1c52 authored by Darryl Hamilton's avatar Darryl Hamilton
Browse files

Add export callback for image based artefacts (bug #753208)



Change-Id: I15f97c229bfe3e9a18cdffe4202acbb635286056
Signed-off-by: default avatarDarryl Hamilton <darrylh@catalyst.net.nz>
parent fb37e77e
......@@ -628,6 +628,13 @@ class HtmlExportOutputFilter {
$html
);
// Links to image artefacts
$html = preg_replace_callback(
'#<a[^>]+href="(' . $wwwroot . ')?/?view/artefact\.php\?artefact=(\d+)(&amp;view=\d+)?(&amp;offset=\d+)?"[^>]*>(<img[^>]+>)</a>#',
array($this, 'replace_artefact_link'),
$html
);
// Links to download files
$html = preg_replace_callback(
'#(?<=[\'"])(' . $wwwroot . ')?/?artefact/file/download\.php\?file=(\d+)(?:(?:&amp;|&|%26)([a-z]+=[x0-9]+)+)*#',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment