Skip to content

Commit

Permalink
Expose page to Twig (fixes broken comment pages)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sommerregen committed May 16, 2016
1 parent 3e2820d commit 0dc453b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/Twig/JSCommentsTwigExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public function funcJSComments($provider = null, $params = [])

// Populate JScomments settings
$vars = isset($page->header()->jscomments) ? $page->header()->jscomments : [];
$vars = array_replace_recursive($vars, $params);
$vars = array_replace_recursive($vars, $params, ['page' => $page]);

// Validate presence of header value
if (!$provider) {
Expand Down

0 comments on commit 0dc453b

Please sign in to comment.