Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
c02816e4
Commit
c02816e4
authored
Apr 29, 2011
by
Francois Marier
Committed by
Gerrit Code Review
Apr 29, 2011
Browse files
Merge "Add export callback for image based artefacts (bug #753208)"
parents
96d9283d
d9bc1c52
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/export/html/lib.php
View file @
c02816e4
...
...
@@ -628,6 +628,13 @@ class HtmlExportOutputFilter {
$html
);
// Links to image artefacts
$html
=
preg_replace_callback
(
'#<a[^>]+href="('
.
$wwwroot
.
')?/?view/artefact\.php\?artefact=(\d+)(&view=\d+)?(&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+)(?:(?:&|&|%26)([a-z]+=[x0-9]+)+)*#'
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment