瀏覽代碼

Fix var scope

Jerome Tamarelle 13 年之前
父節點
當前提交
cc6e1397b2
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/Composer/Repository/Vcs/SvnDriver.php

+ 2 - 2
src/Composer/Repository/Vcs/SvnDriver.php

@@ -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);