Browse files

Merge branch 'MDL-33374-m22' of git://github.com/ankitagarwal/moodle …

…into MOODLE_22_STABLE
  • Loading branch information...
2 parents 1c3d93d + 4df3274 commit f50e16d07e26736040db2792cc70ce9f31a7a807 Sam Hemelryk committed Sep 11, 2012
Showing with 8 additions and 1 deletion.
  1. +1 −0 lang/en/moodle.php
  2. +7 −1 user/editadvanced_form.php
View
1 lang/en/moodle.php
@@ -356,6 +356,7 @@
$string['createcategory'] = 'Create category';
$string['createfolder'] = 'Create a folder in {$a}';
$string['createuserandpass'] = 'Choose your username and password';
+$string['createuser'] = 'Create user';
$string['createziparchive'] = 'Create zip archive';
$string['creatingblocks'] = 'Creating blocks';
$string['creatingblocksroles'] = 'Creating block level role assignments and overrides';
View
8 user/editadvanced_form.php
@@ -68,7 +68,13 @@ function definition() {
/// Next the customisable profile fields
profile_definition($mform, $userid);
- $this->add_action_buttons(false, get_string('updatemyprofile'));
+ if ($userid == -1) {
+ $btnstring = get_string('createuser');
+ } else {
+ $btnstring = get_string('updatemyprofile');
+ }
+
+ $this->add_action_buttons(false, $btnstring);
}
function definition_after_data() {

0 comments on commit f50e16d

Please sign in to comment.