diff --git a/course/import/activities/import_form.php b/course/import/activities/import_form.php index 4a684b9c183..3a6d0779f7a 100755 --- a/course/import/activities/import_form.php +++ b/course/import/activities/import_form.php @@ -17,7 +17,7 @@ class course_import_activities_form_1 extends moodleform { // buttons $submit_string = get_string('usethiscourse'); - $this->add_action_buttons(false, true, $submit_string); + $this->add_action_buttons(false, $submit_string); $mform->addElement('hidden', 'id'); $mform->setType('id', PARAM_INT); @@ -44,7 +44,7 @@ class course_import_activities_form_2 extends moodleform { $mform->addElement('text', 'fromcoursesearch', get_string('searchcourses')); // buttons - $this->add_action_buttons(false, true, get_string('searchcourses')); + $this->add_action_buttons(false, get_string('searchcourses')); $mform->addElement('hidden', 'id'); $mform->setType('id', PARAM_INT); diff --git a/course/import/groups/import_form.php b/course/import/groups/import_form.php index 02451f41c63..a6716b6eb64 100755 --- a/course/import/groups/import_form.php +++ b/course/import/groups/import_form.php @@ -26,7 +26,7 @@ class course_import_groups_form extends moodleform { $mform->setHelpButton('userfile', array('attachment', get_string('attachment', 'forum'), 'forum')); - $this->add_action_buttons(false, true, $strimportgroups); + $this->add_action_buttons(false, $strimportgroups); } diff --git a/enrol/authorize/enrol_form.php b/enrol/authorize/enrol_form.php index 3b3c9cc126d..67439100942 100755 --- a/enrol/authorize/enrol_form.php +++ b/enrol/authorize/enrol_form.php @@ -172,7 +172,7 @@ class enrol_authorize_form extends moodleform $mform->addRule('cczip', get_string('missingzip', 'enrol_authorize'), 'required', null, 'client'); $mform->addRule('cczip', get_string('missingzip', 'enrol_authorize'), 'numeric', null, 'client'); - $this->add_action_buttons(false, true, get_string('sendpaymentbutton', 'enrol_authorize')); + $this->add_action_buttons(false, get_string('sendpaymentbutton', 'enrol_authorize')); } function validation($data) diff --git a/login/change_password_form.php b/login/change_password_form.php index 56cf683ec3b..db04a154f25 100644 --- a/login/change_password_form.php +++ b/login/change_password_form.php @@ -46,9 +46,9 @@ class login_change_password_form extends moodleform { // buttons if (empty($USER->preference['auth_forcepasswordchange'])) { - $this->add_action_buttons(true, false); + $this->add_action_buttons(true); } else { - $this->add_action_buttons(false, false); + $this->add_action_buttons(false); } } diff --git a/login/forgot_password_form.php b/login/forgot_password_form.php index f035df54c6a..dad611647fa 100644 --- a/login/forgot_password_form.php +++ b/login/forgot_password_form.php @@ -20,7 +20,7 @@ class login_forgot_password_form extends moodleform { $mform->addElement('hidden', 'action', 'find'); $mform->setType('action', PARAM_ALPHA); - $this->add_action_buttons(true, false, get_string('ok')); + $this->add_action_buttons(true, get_string('ok')); } } diff --git a/login/signup_form.php b/login/signup_form.php index 074428a93b8..40c0cd82c61 100644 --- a/login/signup_form.php +++ b/login/signup_form.php @@ -49,7 +49,7 @@ class login_signup_form_1 extends moodleform { $mform->setDefault('country', ''); // buttons - $this->add_action_buttons(true, false, get_string('createaccount')); + $this->add_action_buttons(true, get_string('createaccount')); } diff --git a/mod/forum/post_form.php b/mod/forum/post_form.php index 3adb2b38a96..c6e78625e92 100644 --- a/mod/forum/post_form.php +++ b/mod/forum/post_form.php @@ -86,7 +86,7 @@ class mod_forum_post_form extends moodleform { } else { $submit_string = get_string('posttoforum', 'forum'); } - $this->add_action_buttons(false, true, $submit_string); + $this->add_action_buttons(false, $submit_string); $mform->addElement('hidden', 'course'); $mform->setType('course', PARAM_INT);