Skip to content

Commit

Permalink
revert PR689 as it breaks the unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
akrabat committed Jan 2, 2012
1 parent 2d4692f commit ed023a9
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 = rtrim($basePath, '/') . '/';
$this->basePath = $basePath;
return $this;
}
}

0 comments on commit ed023a9

Please sign in to comment.