Skip to content

Commit

Permalink
[fix] Fix template function
Browse files Browse the repository at this point in the history
  • Loading branch information
MrMediocresTestAccount committed Aug 29, 2022
1 parent a691baa commit 667b133
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"require"
: {
"php": ">=7.4",
"ext-json": "*",
"twig/twig": "^3.3",
"sillynet/adretto": "^0.1.0"
},
Expand Down
4 changes: 2 additions & 2 deletions globals/template-functions.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php

use Sillynet\WPTF\WpTwig\Service\Twig;
use Sillynet\Adretto\WpTwig\Service\Twig;

if (!function_exists("i")) {
function i($template, $data = [])
{
$theme = \Sillynet\WPTF\Theme::getInstance();
$theme = \Sillynet\Adretto\Theme::getInstance();
$container = $theme->getContainer();
$renderer = $container->get(Twig::class);
try {
Expand Down

0 comments on commit 667b133

Please sign in to comment.