Skip to content

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
2 parents aeee9e1 + 2137623 commit 2d4692f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/Zend/View/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 2d4692f

Please sign in to comment.