~pressflow/pressflow/6

« back to all changes in this revision

Viewing changes to includes/file.inc

  • Committer: David Strauss
  • Date: 2011-06-01 07:08:45 UTC
  • Revision ID: david@davidstrauss.net-20110601070845-0ff1b9yh0q67e1fu
Revert change which caused file_create_url() to generally return paths instead of absolute URLs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
76
76
  else {
77
77
    switch (variable_get('file_downloads', FILE_DOWNLOADS_PUBLIC)) {
78
78
      case FILE_DOWNLOADS_PUBLIC:
79
 
        return base_path() . $path;
 
79
        return $GLOBALS['base_url'] . '/' . $path;
80
80
      case FILE_DOWNLOADS_PRIVATE:
81
81
        // Strip file_directory_path from $path. Private downloads' URLs are
82
82
        // rewritten to be served relatively to system/files (which is a menu