Skip to content

Commit

Permalink
Just return the path if basePath is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
scottwakefield committed Nov 8, 2017
1 parent da4199c commit c7468e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utilities/Strategy.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public function __construct(Model $config, $basePath = null)

protected function getAbsolutePath($path)
{
if (strpos($path, DIRECTORY_SEPARATOR) === 0) {
if (strpos($path, DIRECTORY_SEPARATOR) === 0 or empty($this->basePath)) {
return $path;
}

Expand Down

0 comments on commit c7468e8

Please sign in to comment.