Merge branch 'MDL-29585-master-fixup' of https://github.com/FMCorz/moodle

This commit is contained in:
Dan Poltawski 2014-11-19 10:29:10 +00:00
commit b4fc107a35

View file

@ -181,7 +181,9 @@ abstract class wiki_markup_parser extends generic_parser {
$text = trim($text); $text = trim($text);
if (!$this->pretty_print && $level == 1) { if (!$this->pretty_print && $level == 1) {
$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')); $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 <= $this->maxheaderdepth) { if ($level <= $this->maxheaderdepth) {