Skip to content

Commit

Permalink
Merge branch 'MDL-54622_m32v1' of https://github.com/sbourget/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
danpoltawski committed Jun 16, 2016
2 parents 62bc2e8 + db5ab8f commit b085235
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
7 changes: 0 additions & 7 deletions blocks/myprofile/edit_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,6 @@ protected function specific_definition($mform) {
$mform->setDefault('config_display_email', '1');
}

$mform->addElement('selectyesno', 'config_display_un', get_string('display_un', 'block_myprofile'));
if (isset($this->block->config->display_un)) {
$mform->setDefault('config_display_un', $this->block->config->display_un);
} else {
$mform->setDefault('config_display_un', '0');
}

$mform->addElement('selectyesno', 'config_display_icq', get_string('display_icq', 'block_myprofile'));
if (isset($this->block->config->display_icq)) {
$mform->setDefault('config_display_icq', $this->block->config->display_icq);
Expand Down
4 changes: 3 additions & 1 deletion blocks/myprofile/lang/en/block_myprofile.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
$string['display_country'] = 'Display country';
$string['display_city'] = 'Display city';
$string['display_email'] = 'Display email';
$string['display_un'] = 'Display name';
$string['display_icq'] = 'Display ICQ';
$string['display_skype'] = 'Display Skype';
$string['display_yahoo'] = 'Display Yahoo';
Expand All @@ -46,3 +45,6 @@
$string['myprofile:myaddinstance'] = 'Add a new logged in user block to Dashboard';
$string['myprofile_settings'] = 'Visible user information';
$string['pluginname'] = 'Logged in user';

// Deprecated since Moodle 3.2.
$string['display_un'] = 'Display name';
1 change: 1 addition & 0 deletions blocks/myprofile/lang/en/deprecated.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
display_un,block_myprofile

0 comments on commit b085235

Please sign in to comment.