Skip to content

Commit

Permalink
fix: don't load layout file on RockPdf rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
BernhardBaumrock committed Dec 4, 2023
1 parent ee7771b commit fd6eaa3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions RockFrontend.module.php
Original file line number Diff line number Diff line change
Expand Up @@ -1318,7 +1318,12 @@ public function js($key, $value = null)
*/
public function latteLayoutFile()
{
// loading of layout file disabled?
if ($this->noLayoutFile) return false;

// for RockPdf we need no layout file
if ($this->rockPdf) return false;

$tpl = rtrim($this->wire->config->paths->templates, "/");
$layoutFile = ltrim($this->layoutFile, "/");
if ($layoutFile) return "$tpl/$layoutFile";
Expand Down

0 comments on commit fd6eaa3

Please sign in to comment.