]> git.mjollnir.org Git - moodle.git/commitdiff
can not insert two buttons with the same IS on one page - fixed by custom buttons...
authorskodak <skodak>
Sat, 6 Jan 2007 20:36:31 +0000 (20:36 +0000)
committerskodak <skodak>
Sat, 6 Jan 2007 20:36:31 +0000 (20:36 +0000)
user/edit_form.php

index fd158dae45247da927be79c4896b44a3872272af..7eed8d1b24386df739e173c2c3c62e37f5fa556b 100644 (file)
@@ -239,7 +239,9 @@ class user_edit_form extends moodleform {
         }
 
         
-        $this->add_action_buttons(false, get_string('updatemyprofile'));
+        //$this->add_action_buttons(false, get_string('updatemyprofile'));
+        $mform->addElement('submit', 'submitbutton1', get_string('updatemyprofile'));
+        $mform->closeHeaderBefore('submitbutton1');
 
 
         /// Moodle optional fields
@@ -324,7 +326,10 @@ class user_edit_form extends moodleform {
             } /// End of $categories foreach
         } /// End of $categories if
 
-        $this->add_action_buttons(false, get_string('updatemyprofile'));
+        //$this->add_action_buttons(false, get_string('updatemyprofile'));
+        $mform->addElement('submit', 'submitbutton2', get_string('updatemyprofile'));
+        $mform->closeHeaderBefore('submitbutton2');
+        
 
     } /// End of function