Compatibility fix for glossary

This commit is contained in:
fiedorow 2005-06-24 18:07:10 +00:00
parent 7d4beb9ed3
commit ee9ff7f35b
2 changed files with 4 additions and 0 deletions

View File

@ -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";

View File

@ -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";