Skip to content
This repository has been archived by the owner on Jan 14, 2020. It is now read-only.

Commit

Permalink
Merge pull request #126 from apility/develop
Browse files Browse the repository at this point in the history
Merge develop into master
  • Loading branch information
thomas-alrek committed Jan 7, 2020
2 parents 6675b41 + 26bef4f commit d1c5806
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/Netflex/Site/PDF.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use Exception;
use GuzzleHttp\Client;
use NF;

class PDF {

Expand Down Expand Up @@ -141,7 +142,7 @@ public function generate () {

if ($url) {
header('Content-Type: application/pdf');
$pdf = $this->client->get($response->url)
$pdf = $this->client->get($url)
->getBody()
->getContents();

Expand Down
2 changes: 1 addition & 1 deletion src/model/Structure.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ public function save()
}

$this->_modified = [];
NF::$cache->save('builder_structures_entry_' . $this->id, serialize($this->attributes));
NF::$cache->save('entry/' . $this->id, serialize($this->attributes));

static::performHookOn($this, 'saved');
return $this;
Expand Down

0 comments on commit d1c5806

Please sign in to comment.