Project:OG Files
Version:5.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:reviewed & tested by the community

Issue Summary

you should not hard code /files in the function og_files_base_path.

Some of us move this to /sites/sitename/files for multisites.

Not sure what to patch since the latest working version at http://drupal.org/node/212572#comment-699916
is full of whitespaces..

so here is the fix:

function og_files_base_path($gid) {
  $drupal_files = file_directory_path();
  return  $drupal_files .'/og_files/'.$gid.'/';
}

thanks for a handy little module.

Comments

#1

I ran into the same problem. Once I applied the code mentioned above and it fixed the issue for me. I've included a patch against 5.x-1.x-dev

AttachmentSize
og_files-path-fix.patch 580 bytes

#2

Status:active» reviewed & tested by the community

Works great!

Blessings.

nobody click here