From 7484fd715a8223209ba3f9580c0ebd0642e59b68 Mon Sep 17 00:00:00 2001 From: lkmorlan <lkmorlan@493050.no-reply.drupal.org> Date: Fri, 24 May 2019 15:26:49 -0400 Subject: [PATCH] Issue #2962458 by Liam Morland: Refactor fillpdf_pdf_link() --- fillpdf.module | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fillpdf.module b/fillpdf.module index f62eec6..315936f 100644 --- a/fillpdf.module +++ b/fillpdf.module @@ -306,7 +306,10 @@ function fillpdf_pdf_link($fid, $nids = NULL, array $webform_arr = NULL, $sample $sample = $sample ? '&sample=true' : ''; // @todo: Refactor to use real url() syntax once tests in place - return url('', array('absolute' => TRUE)) . "fillpdf?fid={$fid}{$nids_uri}{$webforms_uri}{$uc_orders_uri}{$uc_order_products_uri}{$entity_ids_uri}{$sample}"; + $options = array( + 'absolute' => TRUE, + ); + return url('', $options) . "fillpdf?fid={$fid}{$nids_uri}{$webforms_uri}{$uc_orders_uri}{$uc_order_products_uri}{$entity_ids_uri}{$sample}"; } /** -- GitLab