Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

General removal of <nolink> tags for XHTML compatibility.

Moved from the glossary filter as the filter may not be enabled.
  • Loading branch information...
commit c7444a36a59e3401b3f44da84bc41b3b398ea5bb 1 parent 679388a
ikawhero authored

Showing 2 changed files with 4 additions and 3 deletions. Show diff stats Hide diff stats

  1. +4 0 lib/weblib.php
  2. +0 3  mod/glossary/filter.php
4 lib/weblib.php
@@ -1097,6 +1097,10 @@ function filter_text($text, $courseid=NULL) {
1097 1097 }
1098 1098 }
1099 1099
  1100 + /// <nolink> tags removed for XHTML compatibility
  1101 + $text = str_replace('<nolink>', '', $text);
  1102 + $text = str_replace('</nolink>', '', $text);
  1103 +
1100 1104 return $text;
1101 1105 }
1102 1106
3  mod/glossary/filter.php
@@ -108,9 +108,6 @@ function glossary_filter($courseid, $text) {
108 108 }
109 109 }
110 110 }
111   - /// <nolink> tags removed for XHTML compatibility
112   - $text = str_replace('<nolink>', '', $text);
113   - $text = str_replace('</nolink>', '', $text);
114 111
115 112 return $text;
116 113 }

0 comments on commit c7444a3

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