Skip to content

Commit

Permalink
data/files MDL-21281 fixed incorrect case between $fs and $FS in some…
Browse files Browse the repository at this point in the history
… data module fields
  • Loading branch information
Penny Leach committed Jan 8, 2010
1 parent b137aad commit 01e8143
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mod/data/field/file/field.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function display_add_field($recordid=0) {
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 {
Expand Down
2 changes: 1 addition & 1 deletion mod/data/field/picture/field.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function display_add_field($recordid=0) {
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 {
Expand Down

0 comments on commit 01e8143

Please sign in to comment.