You are here

public static function DeliveryHelper::deliverFileRedirect in Helper 7

File

lib/DeliveryHelper.php, line 74

Class

DeliveryHelper

Code

public static function deliverFileRedirect($result) {
  if (is_int($result)) {
    drupal_deliver_html_page($result);
    return;
  }
  $uri = !empty($result->uri) ? $result->uri : $result;
  $url = file_create_url($uri);
  static::deliverRedirect($url);
}