Skip to content
Browse files

MDL-24401: fixed string for adding content page

  • Loading branch information...
1 parent 8075bd8 commit a6b4124840c656ba4e304fd2e04bd89cfb03ddc9 @rwijaya rwijaya committed May 9, 2012
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'));
}
}

0 comments on commit a6b4124

Please sign in to comment.
Something went wrong with that request. Please try again.