Permalink
Browse files

revert PR689 as it breaks the unit tests

  • Loading branch information...
1 parent 2d4692f commit ed023a9310b3c949b211c5ac56e40527106ef978 @akrabat akrabat committed Jan 2, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 library/Zend/View/Helper/BasePath.php
@@ -58,7 +58,7 @@ public function __invoke($file = null)
}
if (null !== $file) {
- $file = ltrim($file, '/');
+ $file = '/' . ltrim($file, '/');
}
return $this->basePath . $file;
@@ -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.