From 2b4b6bd4716d8c9fa16e0f32d809dcaaf7e06046 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 22 Jan 2006 01:48:50 +0000 Subject: [PATCH] Removing the code from SVNCommon's constructor --- includes/svncommon.php | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/includes/svncommon.php b/includes/svncommon.php index b7745d5..bdc2f80 100644 --- a/includes/svncommon.php +++ b/includes/svncommon.php @@ -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)')); - } } /** -- 2.43.5