Improper file root

Veggieryan - January 23, 2008 - 21:16
Project:OG Files
Version:5.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:reviewed & tested by the community
Description

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.

#1

reaneyk - September 4, 2008 - 23:19

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

develCuy - November 28, 2008 - 01:28
Status:active» reviewed & tested by the community

Works great!

Blessings.

 
 

Drupal is a registered trademark of Dries Buytaert.