Permalink
Browse files

MDL-31201 wiki: fix a hardcoded string

  • Loading branch information...
1 parent b574c07 commit 8b3d60557c062bb332058abc8765ddd8ebfa9b98 @sunner sunner committed with stronk7 May 22, 2012
Showing with 2 additions and 1 deletion.
  1. +1 −0 mod/wiki/lang/en/wiki.php
  2. +1 −1 mod/wiki/parser/markups/wikimarkup.php
View
1 mod/wiki/lang/en/wiki.php
@@ -195,6 +195,7 @@
$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';
View
2 mod/wiki/parser/markups/wikimarkup.php
@@ -239,7 +239,7 @@ protected function process_toc() {
$i++;
}
- $this->returnvalues['toc'] = "<div class=\"wiki-toc\"><p class=\"wiki-toc-title\">Table of contents</p>$toc</div>";
+ $this->returnvalues['toc'] = "<div class=\"wiki-toc\"><p class=\"wiki-toc-title\">" . get_string('tableofcontents', 'wiki') . "</p>$toc</div>";
}
/**

0 comments on commit 8b3d605

Please sign in to comment.