From febd7a62f7b6d4d8ad193b85245d2ceef0051a9d Mon Sep 17 00:00:00 2001 From: Guillaume Latour Date: Tue, 19 Sep 2017 17:56:28 +0200 Subject: [PATCH] MDL-60171 user/edit: more meaning for delete pic AMOS BEGIN CPY [delete,core_moodle],[deletepicture,core_moodle] AMOS END --- lang/en/moodle.php | 1 + user/editlib.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lang/en/moodle.php b/lang/en/moodle.php index 6844d5fd3a8ab..f089a013d1f53 100644 --- a/lang/en/moodle.php +++ b/lang/en/moodle.php @@ -484,6 +484,7 @@ $string['deletecheckfiles'] = 'Are you absolutely sure you want to delete these files?'; $string['deletecheckfull'] = 'Are you absolutely sure you want to completely delete the user {$a}, including their enrolments, activity and other user data?'; $string['deletecheckwarning'] = 'You are about to delete these files'; +$string['deletepicture'] = 'Delete picture'; $string['deletesection'] = 'Delete section'; $string['deleteselected'] = 'Delete selected'; $string['deleteselectedkey'] = 'Delete selected key'; diff --git a/user/editlib.php b/user/editlib.php index 7c80aab58820a..83682747117b7 100644 --- a/user/editlib.php +++ b/user/editlib.php @@ -352,7 +352,7 @@ function useredit_shared_definition(&$mform, $editoroptions, $filemanageroptions $mform->addElement('static', 'currentpicture', get_string('currentpicture')); - $mform->addElement('checkbox', 'deletepicture', get_string('delete')); + $mform->addElement('checkbox', 'deletepicture', get_string('deletepicture')); $mform->setDefault('deletepicture', 0); $mform->addElement('filemanager', 'imagefile', get_string('newpicture'), '', $filemanageroptions);