Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-24401: fixed string for adding content page

  • Loading branch information...
commit 272bc0a6ed03b26e5859b503b3b6444138c4dccd 1 parent e16e230
@rwijaya rwijaya authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 mod/lesson/locallib.php
View
4 mod/lesson/locallib.php
@@ -741,8 +741,10 @@ public function custom_definition() {}
if ($this->_customdata['edit'] === true) {
$mform->addElement('hidden', 'edit', 1);
$this->add_action_buttons(get_string('cancel'), get_string('savepage', 'lesson'));
- } else {
+ } else if ($this->qtype === 'questiontype') {
$this->add_action_buttons(get_string('cancel'), get_string('addaquestionpage', 'lesson'));
+ } else {
+ $this->add_action_buttons(get_string('cancel'), get_string('savepage', 'lesson'));
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.