Commit c02816e4 authored by Francois Marier's avatar Francois Marier Committed by Gerrit Code Review
Browse files

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

parents 96d9283d d9bc1c52
......@@ -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]+)+)*#',
......
Supports Markdown
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