mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
Compatibility fix for glossary
This commit is contained in:
parent
7d4beb9ed3
commit
ee9ff7f35b
@ -136,6 +136,8 @@ function algebra_filter ($courseid, $text) {
|
||||
$algebra = $matches[1][$i] . $matches[2][$i];
|
||||
$algebra = str_replace('<nolink>','',$algebra);
|
||||
$algebra = str_replace('</nolink>','',$algebra);
|
||||
$algebra = str_replace('<span class="nolink">','',$algebra);
|
||||
$algebra = str_replace('</span>','',$algebra);
|
||||
$align = "middle";
|
||||
if (preg_match('/^align=bottom /',$algebra)) {
|
||||
$align = "text-bottom";
|
||||
|
@ -125,6 +125,8 @@ function tex_filter ($courseid, $text) {
|
||||
$texexp = $matches[1][$i] . $matches[2][$i];
|
||||
$texexp = str_replace('<nolink>','',$texexp);
|
||||
$texexp = str_replace('</nolink>','',$texexp);
|
||||
$texexp = str_replace('<span class="nolink">','',$texexp);
|
||||
$texexp = str_replace('</span>','',$texexp);
|
||||
$align = "middle";
|
||||
if (preg_match('/^align=bottom /',$texexp)) {
|
||||
$align = "text-bottom";
|
||||
|
Loading…
x
Reference in New Issue
Block a user