1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-10 17:12:51 +00:00

Fix var scope

This commit is contained in:
Jerome Tamarelle 2012-04-24 17:15:31 +02:00
parent da823f5f19
commit cc6e1397b2

View file

@ -62,8 +62,8 @@ class SvnDriver extends VcsDriver
{
$this->url = rtrim(self::normalizeUrl($this->url), '/');
if (false !== ($pos = strrpos($url, '/trunk'))) {
$this->baseUrl = substr($url, 0, $pos);
if (false !== ($pos = strrpos($this->url, '/trunk'))) {
$this->baseUrl = substr($this->url, 0, $pos);
}
$this->util = new SvnUtil($this->baseUrl, $this->io, $this->process);