Skip to content

Commit

Permalink
Merge branch 'MDL-29012-show_deleted_field' of git://github.com/tmura…
Browse files Browse the repository at this point in the history
…s/moodle
  • Loading branch information
stronk7 committed Aug 24, 2011
2 parents 85dca09 + 192a8ae commit dc7ed03
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lang/en/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -804,7 +804,7 @@
$string['profiledefaultdata'] = 'Default value';
$string['profiledefaultchecked'] = 'Checked by default';
$string['profiledeletecategory'] = 'Deleting a category';
$string['profiledeletefield'] = 'Deleting a field';
$string['profiledeletefield'] = 'Deleting field "{$a}"';
$string['profiledescription'] = 'Description of the field';
$string['profiledscript'] = 'This script has been profiled';
$string['profiledscriptview'] = 'View profiling information for this script';
Expand Down
3 changes: 2 additions & 1 deletion user/profile/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,9 @@
}

//ask for confirmation
$fieldname = $DB->get_field('user_info_field', 'name', array('id'=>$id));
$optionsyes = array ('id'=>$id, 'confirm'=>1, 'action'=>'deletefield', 'sesskey'=>sesskey());
$strheading = get_string('profiledeletefield', 'admin');
$strheading = get_string('profiledeletefield', 'admin', $fieldname);
$PAGE->navbar->add($strheading);
echo $OUTPUT->header();
echo $OUTPUT->heading($strheading);
Expand Down

0 comments on commit dc7ed03

Please sign in to comment.