mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-23 16:10:57 -04:00
Fix for phantomjscloud
This commit is contained in:
parent
84b6b7b928
commit
4b08c20d72
@ -1155,10 +1155,7 @@ class Invoice extends EntityModel implements BalanceAffecting
|
||||
}
|
||||
|
||||
if (! $pdfString && ($key = env('PHANTOMJS_CLOUD_KEY'))) {
|
||||
if (Utils::isNinjaDev()) {
|
||||
$link = env('TEST_LINK');
|
||||
}
|
||||
$url = "http://api.phantomjscloud.com/api/browser/v2/{$key}/?request=%7Burl:%22{$link}?phantomjs=true&phantomjs_secret={$phantomjsSecret}%22,renderType:%22html%22%7D";
|
||||
$url = "http://api.phantomjscloud.com/api/browser/v2/{$key}/?request=%7Burl:%22{$link}?phantomjs=true%26phantomjs_secret={$phantomjsSecret}%22,renderType:%22html%22%7D";
|
||||
$pdfString = CurlUtils::get($url);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user