mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
MDL-32023 wiki: remove hard-coded edit string
This commit is contained in:
parent
470d47f512
commit
789379ec58
@ -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';
|
||||
|
@ -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}§ion=" . urlencode($text), 'class' => 'wiki_edit_section'));
|
||||
$text .= parser_utils::h('a', '['.get_string('editsection', 'wiki').']', array('href' => "edit.php?pageid={$this->wiki_page_id}§ion=" . urlencode($text), 'class' => 'wiki_edit_section'));
|
||||
}
|
||||
|
||||
if ($level < 4) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user