Commit 68fade87 authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review

Merge "Bug 1798720: Replacing the active tag link for static text in the export."

parents f42fc152 0bd2fb34
......@@ -754,6 +754,12 @@ class HtmlExportOutputFilter {
$html
);
// Tags
$html = preg_replace_callback(
'#<a[^>]+href="' . $wwwroot . 'tags.php\?tag=.*?">(.*?)<\/a>#',
array($this, 'replace_tag_link'),
$html
);
return $html;
}
......@@ -919,6 +925,14 @@ class HtmlExportOutputFilter {
return $this->basepath . '/static/' . $file;
}
/**
* Callback to replace links to tags static text in
* the HTML export
*/
function replace_tag_link($matches) {
return $matches[1];
}
/**
* Given a file, returns the folder path for it in the Mahara files area
*
......
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