Skip to content
GitLab
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
d0319acf
Commit
d0319acf
authored
Jul 16, 2010
by
Penny Leach
Browse files
leap2a xhtml fix: when replacing images, close them with />
Signed-off-by:
Penny Leach
<
penny@mjollnir.org
>
parent
64e8b6e2
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/export/leap/lib.php
View file @
d0319acf
...
...
@@ -962,7 +962,7 @@ class LeapExportOutputFilter {
private
function
replace_download_link
(
$matches
)
{
$artefactid
=
$matches
[
3
];
if
(
in_array
(
$artefactid
,
$this
->
artefactids
))
{
return
'<'
.
$matches
[
1
]
.
'rel="leap:has_part" href="portfolio:artefact'
.
hsc
(
$artefactid
)
.
'"'
.
$matches
[
5
]
.
'>'
;
return
'<'
.
$matches
[
1
]
.
'rel="leap:has_part" href="portfolio:artefact'
.
hsc
(
$artefactid
)
.
'"'
.
$matches
[
5
]
.
(
$matches
[
1
]
==
'img'
?
'/'
:
''
)
.
'>'
;
}
log_debug
(
"Not providing an export-relative link for
$artefactid
"
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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