1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-20 00:11:35 +02:00

Fix for phantomjscloud

This commit is contained in:
Hillel Coren 2017-07-19 17:50:00 +03:00
parent 4204cbb06f
commit ccf9104da8

View File

@ -1162,10 +1162,7 @@ class Invoice extends EntityModel implements BalanceAffecting
} }
if (! $pdfString && ($key = env('PHANTOMJS_CLOUD_KEY'))) { if (! $pdfString && ($key = env('PHANTOMJS_CLOUD_KEY'))) {
if (Utils::isNinjaDev()) { $url = "http://api.phantomjscloud.com/api/browser/v2/{$key}/?request=%7Burl:%22{$link}?phantomjs=true%26phantomjs_secret={$phantomjsSecret}%22,renderType:%22html%22%7D";
$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";
$pdfString = CurlUtils::get($url); $pdfString = CurlUtils::get($url);
} }