Skip to content

Commit

Permalink
fix(acf-composer): Fix relative path when using ACF Composer inside o…
Browse files Browse the repository at this point in the history
…f a plugin (Fixes #125) (#133)
  • Loading branch information
valeriomonti authored Oct 10, 2022
1 parent 38dc07b commit 27b54d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AcfComposer.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public function registerPath($path, $namespace = null)

foreach ((new Finder())->in($paths->toArray())->files()->sortByName() as $file) {
$relativePath = str_replace(
$this->app->path() . DIRECTORY_SEPARATOR,
Str::finish($path, DIRECTORY_SEPARATOR),
'',
$file->getPathname()
);
Expand Down

0 comments on commit 27b54d3

Please sign in to comment.