Skip to content

Commit

Permalink
Fix error on missing renderer if using unknown file extension
Browse files Browse the repository at this point in the history
  • Loading branch information
mahagr committed May 24, 2017
1 parent 6ffc062 commit b2070c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/src/Grav/Common/Debugger.php
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ public function render()
if ($this->enabled()) {
// Only add assets if Page is HTML
$page = $this->grav['page'];
if ($page->templateFormat() != 'html') {
if ($page->templateFormat() != 'html' || !$this->renderer) {
return $this;
}

Expand Down

0 comments on commit b2070c8

Please sign in to comment.