Compatibility fix for glossary
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user