Skip to content

Commit

Permalink
MDL-32023 wiki: remove hard-coded edit string
Browse files Browse the repository at this point in the history
  • Loading branch information
mackensen committed Aug 2, 2012
1 parent 470d47f commit 789379e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions mod/wiki/lang/en/wiki.php
Expand Up @@ -59,6 +59,7 @@
$string['editing'] = 'Editing wiki page';
$string['editingcomment'] = 'Editing comment';
$string['editingpage'] = 'Editing this page \'{$a}\'';
$string['editsection'] = 'edit';
$string['files'] = 'Files';
$string['filenotuploadederror'] = 'File \'{$a}\' could not be uploaded correctly.';
$string['filtername'] = 'Wiki auto-linking';
Expand Down
3 changes: 1 addition & 2 deletions mod/wiki/parser/markups/wikimarkup.php
Expand Up @@ -18,7 +18,6 @@ abstract class wiki_markup_parser extends generic_parser {
protected $wiki_page_id;

//sections
protected $section_edit_text = "[edit]";
protected $repeated_sections;

protected $section_editing = true;
Expand Down Expand Up @@ -181,7 +180,7 @@ protected function generate_header($text, $level) {
$text = trim($text);

if (!$this->pretty_print && $level == 1) {
$text .= parser_utils::h('a', $this->section_edit_text, array('href' => "edit.php?pageid={$this->wiki_page_id}&section=" . urlencode($text), 'class' => 'wiki_edit_section'));
$text .= parser_utils::h('a', '['.get_string('editsection', 'wiki').']', array('href' => "edit.php?pageid={$this->wiki_page_id}&section=" . urlencode($text), 'class' => 'wiki_edit_section'));
}

if ($level < 4) {
Expand Down

0 comments on commit 789379e

Please sign in to comment.