Skip to content

Commit

Permalink
Merge pull request #1 from brandonkelly/patch-1
Browse files Browse the repository at this point in the history
Use registerTwigExtension()
  • Loading branch information
MDXDave authored Jan 29, 2019
2 parents cb357fc + d44fa8a commit 339f30c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TimeAgo.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function init()
self::$plugin = $this;

// Add in our Twig extensions
Craft::$app->view->twig->addExtension(new twigextensions\TimeAgoTwigExtension());
Craft::$app->view->registerTwigExtension(new twigextensions\TimeAgoTwigExtension());

Craft::info(
Craft::t(
Expand Down

0 comments on commit 339f30c

Please sign in to comment.