Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
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 648aad913a81dbd6317239edcc1d0e46d664dfcd 1 parent f8dfdb5
@andyjdavis andyjdavis authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 files/renderer.php
View
4 files/renderer.php
@@ -453,11 +453,11 @@ 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);
//$string['maxfilesize'] = 'Maximum size for new files: {$a}';
} else {
- $strparam = (object)array('size' => $maxbytes, 'attachments' => $options->maxfiles);
+ $strparam = (object)array('size' => $maxbytes, 'attachments' => $fm->options->maxfiles);
$maxsize = get_string('maxsizeandattachments', 'moodle', $strparam);
//$string['maxsizeandattachments'] = 'Maximum size for new files: {$a->size}, maximum attachments: {$a->attachments}';
}
Please sign in to comment.
Something went wrong with that request. Please try again.