From 4b08c20d72f0ddeb16fc6acf94c2edc0c4b7de14 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Wed, 19 Jul 2017 17:49:40 +0300 Subject: [PATCH] Fix for phantomjscloud --- app/Models/Invoice.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/Models/Invoice.php b/app/Models/Invoice.php index db771b4b7539..7bed6bc82021 100644 --- a/app/Models/Invoice.php +++ b/app/Models/Invoice.php @@ -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); }