Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fillpdf
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
drupal.org
fillpdf
Commits
89840a7b
Commit
89840a7b
authored
7 years ago
by
Liam Morland
Browse files
Options
Downloads
Patches
Plain Diff
Refactor: Get $api_key just before it is used
It was moved out of place in
72efe22b
.
parent
a429f6b4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
fillpdf.module
+1
-2
1 addition, 2 deletions
fillpdf.module
with
1 addition
and
2 deletions
fillpdf.module
+
1
−
2
View file @
89840a7b
...
@@ -1216,8 +1216,6 @@ function fillpdf_execute_merge($method, $fields, $fillpdf, $mode = 'url', $flatt
...
@@ -1216,8 +1216,6 @@ function fillpdf_execute_merge($method, $fields, $fillpdf, $mode = 'url', $flatt
switch
(
$method
)
{
switch
(
$method
)
{
// FillPDF Service.
// FillPDF Service.
case
'remote'
:
case
'remote'
:
$api_key
=
variable_get
(
'fillpdf_api_key'
,
'0'
);
// Anonymize image data from the fields array; we should not send the real
// Anonymize image data from the fields array; we should not send the real
// filename to FillPDF Service. We do this in the specific fill method
// filename to FillPDF Service. We do this in the specific fill method
// because others (e.g. local) may need the filename on the local system.
// because others (e.g. local) may need the filename on the local system.
...
@@ -1229,6 +1227,7 @@ function fillpdf_execute_merge($method, $fields, $fillpdf, $mode = 'url', $flatt
...
@@ -1229,6 +1227,7 @@ function fillpdf_execute_merge($method, $fields, $fillpdf, $mode = 'url', $flatt
}
}
unset
(
$field
);
unset
(
$field
);
$api_key
=
variable_get
(
'fillpdf_api_key'
,
'0'
);
$result
=
_fillpdf_xmlrpc_request
(
FILLPDF_DEFAULT_SERVLET_URL
,
'merge_pdf_v3'
,
base64_encode
(
$contents
),
$fields
,
$api_key
,
$flatten
,
$image_data
);
$result
=
_fillpdf_xmlrpc_request
(
FILLPDF_DEFAULT_SERVLET_URL
,
'merge_pdf_v3'
,
base64_encode
(
$contents
),
$fields
,
$api_key
,
$flatten
,
$image_data
);
if
(
$result
->
error
==
TRUE
)
{
if
(
$result
->
error
==
TRUE
)
{
drupal_goto
();
drupal_goto
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment