You are here

function filebrowser_public_download_url in Filebrowser 6.2

1 string reference to 'filebrowser_public_download_url'
filebrowser_filebrowser_download_manager_info in ./filebrowser.module
hook_filebrowser_download_manager_info implementation.

File

includes/downloads.inc, line 142

Code

function filebrowser_public_download_url($node, $record) {
  $file = _filebrowser_convert_to_fs_encoding($node, _filebrowser_get_path($node) . $record['path']);
  $web_root = getcwd();
  if (strpos($web_root, $file) === 0) {
    $target = substr($file, strlen($web_root));
  }
  else {
    $target = $file;
  }

  // added language '' issue 2312731
  return url($target, array(
    'absolute' => TRUE,
    'language' => '',
  ));
}