Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-33374 profile: Use correct text for buttons when creating a new user

  • Loading branch information...
commit 607fdfc344f4b9f0bd49cd341e6893aee718f413 1 parent 935c3d5
@ankitagarwal ankitagarwal authored
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
@@ -363,6 +363,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
@@ -72,7 +72,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() {
Please sign in to comment.
Something went wrong with that request. Please try again.