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

Commit

Permalink
Merge branch 'hotfix/revert-689'
Browse files Browse the repository at this point in the history
  • Loading branch information
akrabat committed Jan 2, 2012
2 parents efd54b7 + b6f73ed commit c3a8db3
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 = rtrim($basePath, '/') . '/';
$this->basePath = $basePath;
return $this;
}
}

0 comments on commit c3a8db3

Please sign in to comment.