Skip to content
Browse files

Remove nolink tags in glossaries

  • Loading branch information...
1 parent ea512d9 commit ea3cf78190d25534ad4766264fe023735fd29a58 fiedorow committed Feb 29, 2004
Showing with 4 additions and 0 deletions.
  1. +2 −0 filter/algebra/filter.php
  2. +2 −0 filter/tex/filter.php
View
2 filter/algebra/filter.php
@@ -130,6 +130,8 @@ function algebra_filter ($courseid, $text) {
preg_match_all('/<algebra>(.+?)<\/algebra>|@@(.+?)@@/is', $text, $matches);
for ($i=0; $i<count($matches[0]); $i++) {
$algebra = $matches[1][$i] . $matches[2][$i];
+ $algebra = str_replace('<nolink>','',$algebra);
+ $algebra = str_replace('</nolink>','',$algebra);
$md5 = md5($algebra);
$filename = $md5 . ".gif";
if (! $texcache = get_record("cache_filters","filter","algebra", "md5key", $md5)) {
View
2 filter/tex/filter.php
@@ -122,6 +122,8 @@ function tex_filter ($courseid, $text) {
preg_match_all('/<tex>(.+?)<\/tex>|\$\$(.+?)\$\$/is', $text, $matches);
for ($i=0; $i<count($matches[0]); $i++) {
$texexp = $matches[1][$i] . $matches[2][$i];
+ $texexp = str_replace('<nolink>','',$texexp);
+ $texexp = str_replace('</nolink>','',$texexp);
$md5 = md5($texexp);
if (! $texcache = get_record("cache_filters","filter","tex", "md5key", $md5)) {
$texcache->filter = 'tex';

0 comments on commit ea3cf78

Please sign in to comment.
Something went wrong with that request. Please try again.