Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-33686 Repositories: we were accessing a non-existent variable and…

… thus never displaying the maximum number of attachments
  • Loading branch information...
commit 789c8b8194995ae3a4cccbf4c528b0aa07b75dca 1 parent e9aa190
@andyjdavis andyjdavis authored samhemelryk committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 files/renderer.php
View
4 files/renderer.php
@@ -455,10 +455,10 @@ public function filemanager_js_templates() {
*/
private function fm_print_restrictions($fm) {
$maxbytes = display_size($fm->options->maxbytes);
- if (empty($options->maxfiles) || $options->maxfiles == -1) {
+ if (empty($fm->options->maxfiles) || $fm->options->maxfiles == -1) {
$maxsize = get_string('maxfilesize', 'moodle', $maxbytes);
} else {
- $strparam = (object)array('size' => $maxbytes, 'attachments' => $options->maxfiles);
+ $strparam = (object)array('size' => $maxbytes, 'attachments' => $fm->options->maxfiles);
$maxsize = get_string('maxsizeandattachments', 'moodle', $strparam);
}
// TODO MDL-32020 also should say about 'File types accepted'
Please sign in to comment.
Something went wrong with that request. Please try again.