Skip to content

Commit

Permalink
Merge pull request #2 from mickaelperrin/template-issue
Browse files Browse the repository at this point in the history
Fix views path not being correctly resolved in non-standard WordPress environments
  • Loading branch information
atanas-dev authored Mar 14, 2021
2 parents 4a37bcf + 0a66381 commit bd42d19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/View/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function register( $container ) {
] );

$container[ WPEMERGETWIG_VIEW_TWIG_VIEW_ENGINE_KEY ] = function( $c ) {
$root = MixedType::normalizePath( ABSPATH );
$root = MixedType::normalizePath( WP_CONTENT_DIR . DIRECTORY_SEPARATOR );

$config = $c[ WPEMERGE_CONFIG_KEY ]['twig'];
$views = MixedType::toArray( $config['views'] );
Expand Down

0 comments on commit bd42d19

Please sign in to comment.