diff --git a/mod/wiki/lang/en/wiki.php b/mod/wiki/lang/en/wiki.php index 4815ba338d1..9781d7b0b26 100644 --- a/mod/wiki/lang/en/wiki.php +++ b/mod/wiki/lang/en/wiki.php @@ -195,6 +195,7 @@ $string['searchcontent'] = 'Search in page content'; $string['searchresult'] = 'Search results:'; $string['searchwikis'] = 'Search wikis'; $string['special'] = 'Special'; +$string['tableofcontents'] = 'Table of contents'; $string['tagsdeleted'] = 'Wiki tags have been deleted'; $string['tagtitle'] = 'See the "{$a}" tag'; $string['teacherrating'] = 'Teacher rating'; diff --git a/mod/wiki/parser/markups/wikimarkup.php b/mod/wiki/parser/markups/wikimarkup.php index 30976db0c6a..cf7a2b327e7 100644 --- a/mod/wiki/parser/markups/wikimarkup.php +++ b/mod/wiki/parser/markups/wikimarkup.php @@ -239,7 +239,7 @@ abstract class wiki_markup_parser extends generic_parser { $i++; } - $this->returnvalues['toc'] = "
Table of contents
$toc" . get_string('tableofcontents', 'wiki') . "
$toc