Skip to content
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'rafalwrzeszcz/feature-basepath-fix'
Browse files Browse the repository at this point in the history
  • Loading branch information
akrabat committed Jan 2, 2012
7 parents 14c7cd8 + 5a55cdf + c9e475e + 1fa3bfc + 3a78ba4 + a774960 + b7f196c commit efd54b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Helper/BasePath.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public function __invoke($file = null)
}

if (null !== $file) {
$file = '/' . ltrim($file, '/');
$file = ltrim($file, '/');
}

return $this->basePath . $file;
Expand All @@ -72,7 +72,7 @@ public function __invoke($file = null)
*/
public function setBasePath($basePath)
{
$this->basePath = $basePath;
$this->basePath = rtrim($basePath, '/') . '/';
return $this;
}
}

0 comments on commit efd54b7

Please sign in to comment.