Merge branch 'MDL-29012-show_deleted_field' of git://github.com/tmuras/moodle

This commit is contained in:
Eloy Lafuente (stronk7)
2011-08-25 01:30:41 +02:00
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -804,7 +804,7 @@ $string['profiledefaultcategory'] = 'Other fields';
$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';
+2 -1
View File
@@ -55,8 +55,9 @@ switch ($action) {
}
//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);