Browse files

Merge branch 'MDL-36104_m24' of https://github.com/markn86/moodle int…

…o MOODLE_24_STABLE
  • Loading branch information...
2 parents b188682 + 55cf5df commit d828e8c6789ce6319d5038261f83b1c1e61d9bcc @stronk7 stronk7 committed Jan 22, 2013
View
4 mod/assign/feedback/comments/locallib.php
@@ -199,7 +199,9 @@ public function get_form_elements($grade, MoodleQuickForm $mform, stdClass $data
}
}
- $mform->addElement('editor', 'assignfeedbackcomments_editor', '', null, null);
+ $mform->addElement('editor', 'assignfeedbackcomments_editor', html_writer::tag('span', $this->get_name(),
+ array('class' => 'accesshide')), null, null);
+
return true;
}
View
4 mod/assign/feedback/file/locallib.php
@@ -141,8 +141,8 @@ public function get_form_elements_for_user($grade, MoodleQuickForm $mform, stdCl
'assignfeedback_file',
ASSIGNFEEDBACK_FILE_FILEAREA,
$gradeid);
-
- $mform->addElement('filemanager', $elementname . '_filemanager', '', null, $fileoptions);
+ $mform->addElement('filemanager', $elementname . '_filemanager', html_writer::tag('span', $this->get_name(),
+ array('class' => 'accesshide')), null, $fileoptions);
return true;
}
View
5 mod/assign/submission/file/locallib.php
@@ -150,9 +150,10 @@ public function get_form_elements($submission, MoodleQuickForm $mform, stdClass
$fileoptions = $this->get_file_options();
$submissionid = $submission ? $submission->id : 0;
-
$data = file_prepare_standard_filemanager($data, 'files', $fileoptions, $this->assignment->get_context(), 'assignsubmission_file', ASSIGNSUBMISSION_FILE_FILEAREA, $submissionid);
- $mform->addElement('filemanager', 'files_filemanager', '', null, $fileoptions);
+ $mform->addElement('filemanager', 'files_filemanager', html_writer::tag('span', $this->get_name(),
+ array('class' => 'accesshide')), null, $fileoptions);
+
return true;
}
View
5 mod/assign/submission/onlinetext/locallib.php
@@ -90,9 +90,10 @@ public function get_form_elements($submission, MoodleQuickForm $mform, stdClass
}
-
$data = file_prepare_standard_editor($data, 'onlinetext', $editoroptions, $this->assignment->get_context(), 'assignsubmission_onlinetext', ASSIGNSUBMISSION_ONLINETEXT_FILEAREA, $submissionid);
- $mform->addElement('editor', 'onlinetext_editor', '', null, $editoroptions);
+ $mform->addElement('editor', 'onlinetext_editor', html_writer::tag('span', $this->get_name(),
+ array('class' => 'accesshide')), null, $editoroptions);
+
return true;
}

0 comments on commit d828e8c

Please sign in to comment.