Skip to content

Commit

Permalink
Revert view backup (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonvarga authored Jan 27, 2023
1 parent 671dc79 commit 86372ba
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
}
},
"require": {
"statamic/cms": "~3.3.0"
"statamic/cms": "~3.3.54"
},
"require-dev": {
"orchestra/testbench": "^6.22.0 || ^7.0"
Expand Down
11 changes: 0 additions & 11 deletions src/Generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ class Generator
protected $config;
protected $request;
protected $after;
protected $viewPaths;
protected $extraUrls;
protected $workers = 1;
protected $taskResults;
Expand Down Expand Up @@ -87,7 +86,6 @@ public function generate()

$this
->bindGlide()
->backupViewPaths()
->clearDirectory()
->createContentFiles()
->createSymlinks()
Expand Down Expand Up @@ -129,13 +127,6 @@ public function bindGlide()
return $this;
}

public function backupViewPaths()
{
$this->viewPaths = view()->getFinder()->getPaths();

return $this;
}

public function clearDirectory()
{
$this->files->deleteDirectory($this->config['destination'], true);
Expand Down Expand Up @@ -269,8 +260,6 @@ protected function makeContentGenerationClosures($pages, $request)

$this->updateCurrentSite($page->site());

view()->getFinder()->setPaths($this->viewPaths);

$count++;

$request->setPage($page);
Expand Down

0 comments on commit 86372ba

Please sign in to comment.