Removing the code from SVNCommon's constructor
authorRobert Sesek <rsesek@bluestatic.org>
Sun, 22 Jan 2006 01:48:50 +0000 (01:48 +0000)
committerRobert Sesek <rsesek@bluestatic.org>
Sun, 22 Jan 2006 01:48:50 +0000 (01:48 +0000)
includes/svncommon.php

index b7745d5fb5f50d4d1dfd862a9e95cbbd0a9cfe32..bdc2f803eabdc15589a9df654662af8dd3b5622d 100644 (file)
@@ -41,27 +41,11 @@ class SVNCommon
        var $svnpath;
        
        /**
-       * Constructor: validate SVN path
-       *
-       * @param        string  Path to SVN binary
+       * Constructor
        */
-       function SVNLib($svnpath)
+       function SVNLib()
        {
                global $viewsvn;
-               
-               $this->svnpath = $viewsvn->shell->cmd($svnpath);
-               
-               $access = $viewsvn->shell->exec($this->svnpath . ' --version');
-               
-               if (!$access)
-               {
-                       $viewsvn->trigger->error($viewsvn->lang->string('The SVN binary could not be located'));
-               }
-               
-               if (!preg_match('#^svn, version (.*?)\)$#i', trim($access[0])))
-               {
-                       $viewsvn->trigger->error($viewsvn->lang->string('The SVN binary does not appear to be valid (it failed our tests)'));
-               }
        }
        
        /**