Permalink
Browse files

MDL-33356 fixed a regression after function form_filemanager_redner()…

… was deleted
  • Loading branch information...
1 parent 4631e39 commit 6adb5f13638f316550e6b6a0734a8626e2073dfb @marinaglancy marinaglancy committed May 28, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 question/type/essay/renderer.php
View
4 question/type/essay/renderer.php
@@ -113,7 +113,9 @@ public function files_input(question_attempt $qa, $numallowed,
$pickeroptions->itemid = $qa->prepare_response_files_draft_itemid(
'attachments', $options->context->id);
- return form_filemanager_render($pickeroptions) . html_writer::empty_tag(
+ $fm = new form_filemanager($pickeroptions);
+ $filesrenderer = $this->page->get_renderer('core', 'files');
+ return $filesrenderer->render($fm). html_writer::empty_tag(
'input', array('type' => 'hidden', 'name' => $qa->get_qt_field_name('attachments'),
'value' => $pickeroptions->itemid));
}

0 comments on commit 6adb5f1

Please sign in to comment.