MDL-32023 wiki: remove hard-coded edit string

This commit is contained in:
Charles Fulton 2012-03-13 04:15:27 -07:00
parent 470d47f512
commit 789379ec58
2 changed files with 2 additions and 2 deletions

View File

@ -59,6 +59,7 @@ $string['editfiles'] = 'Edit wiki files';
$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';

View File

@ -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;
@ -181,7 +180,7 @@ abstract class wiki_markup_parser extends generic_parser {
$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) {