diff --git a/lang/en/moodle.php b/lang/en/moodle.php index 74644c0901c..6c17f58459d 100644 --- a/lang/en/moodle.php +++ b/lang/en/moodle.php @@ -1842,6 +1842,7 @@ $string['shortnameuser'] = 'User short name'; $string['shortsitename'] = 'Short name for site (eg single word)'; $string['show'] = 'Show'; $string['showactions'] = 'Show actions'; +$string['showadvancededitor'] = 'Advanced'; $string['showadvancedsettings'] = 'Show advanced settings'; $string['showall'] = 'Show all {$a}'; $string['showallcourses'] = 'Show all courses'; diff --git a/mod/forum/classes/post_form.php b/mod/forum/classes/post_form.php index a2b20e172d4..948468176fd 100644 --- a/mod/forum/classes/post_form.php +++ b/mod/forum/classes/post_form.php @@ -291,7 +291,7 @@ class mod_forum_post_form extends moodleform { // Additional attribs to handle collapsible div. ['data-toggle' => 'collapse', 'data-target' => "#collapseAddForm"]); $buttonarray[] = &$mform->createElement('submit', 'advancedadddiscussion', - get_string('advanced'), null, null, ['customclassoverride' => 'btn-link']); + get_string('showadvancededitor'), null, null, ['customclassoverride' => 'btn-link']); $mform->addGroup($buttonarray, 'buttonar', '', array(' '), false); $mform->closeHeaderBefore('buttonar'); diff --git a/mod/forum/tests/behat/behat_mod_forum.php b/mod/forum/tests/behat/behat_mod_forum.php index d167882e6d3..6dfdb7e6be2 100644 --- a/mod/forum/tests/behat/behat_mod_forum.php +++ b/mod/forum/tests/behat/behat_mod_forum.php @@ -435,7 +435,7 @@ class behat_mod_forum extends behat_base { // Navigate to forum. $this->execute('behat_general::click_link', $this->escape($forumname)); $this->execute('behat_general::click_link', $buttonstr); - $this->execute('behat_forms::press_button', get_string('advanced')); + $this->execute('behat_forms::press_button', get_string('showadvancededitor')); $this->fill_new_discussion_form($table); }