data/files MDL-21281 fixed incorrect case between $fs and $FS in some data module...
authorPenny Leach <penny@liip.ch>
Fri, 8 Jan 2010 02:37:37 +0000 (02:37 +0000)
committerPenny Leach <penny@liip.ch>
Fri, 8 Jan 2010 02:37:37 +0000 (02:37 +0000)
mod/data/field/file/field.class.php
mod/data/field/picture/field.class.php

index b7c46cb..8719052 100755 (executable)
@@ -35,7 +35,7 @@ class data_field_file extends data_field_base {
         if ($recordid){
             if ($content = $DB->get_record('data_content', array('fieldid'=>$this->field->id, 'recordid'=>$recordid))) {
                 if (!empty($content->content)) {
-                    if ($file = $FS->get_file($this->context->id, 'data_content', $content->id, '/', $content->content)) {
+                    if ($file = $fs->get_file($this->context->id, 'data_content', $content->id, '/', $content->content)) {
                         if (empty($content->content1)) {
                             $displayname = $file->get_filename();
                         } else {
index 8720f02..d515d0d 100755 (executable)
@@ -38,7 +38,7 @@ class data_field_picture extends data_field_base {
         if ($recordid){
             if ($content = $DB->get_record('data_content', array('fieldid'=>$this->field->id, 'recordid'=>$recordid))) {
                 if (!empty($content->content)) {
-                    if ($file = $FS->get_file($this->context->id, 'data_content', $content->id, '/', $content->content)) {
+                    if ($file = $fs->get_file($this->context->id, 'data_content', $content->id, '/', $content->content)) {
                         if (empty($content->content1)) {
                             $displayname = $file->get_filename();
                         } else {